diff --git a/installer/client/cli/utils.py b/installer/client/cli/utils.py index 69505bf..9757ac7 100644 --- a/installer/client/cli/utils.py +++ b/installer/client/cli/utils.py @@ -388,14 +388,6 @@ class Alias: for pattern in allPatterns: self.remove(pattern) - def find_line(self, name): - for file in self.config_files: - with open(file, "r") as f: - lines = f.readlines() - for line in lines: - if line.strip("\n") == f"alias ${name}='{alias}'": - return line - def add_patterns(self): allPatterns = os.listdir(self.patterns) for pattern in allPatterns: diff --git a/setup.sh b/setup.sh index 4b51e7b..8dbaa4f 100755 --- a/setup.sh +++ b/setup.sh @@ -40,8 +40,8 @@ for config_file in "${config_files[@]}"; do echo -e "\n# Load custom aliases\n$source_line" >> "$config_file" echo "Added source command for $bootstrap_file in $config_file." fi - sed -i '/alias fabric=/d' "$config_file" - sed -i '/fabric --pattern/d' "$config_file" + sed -i '' '/alias fabric=/d' "$config_file" + sed -i '' '/fabric --pattern/d' "$config_file" else