From 42464901894388ada1aee649acb981d2a92fd492 Mon Sep 17 00:00:00 2001 From: Meir Michanie Date: Wed, 13 Mar 2024 12:06:24 +0100 Subject: [PATCH] Fix bug on setup.py when editing symlinks --- setup.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.sh b/setup.sh index 8dbaa4f..13921e9 100755 --- a/setup.sh +++ b/setup.sh @@ -40,6 +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 command does not work on symlinks, so we will resolve the symlink first + config_file=$(readlink -f "$config_file") sed -i '' '/alias fabric=/d' "$config_file" sed -i '' '/fabric --pattern/d' "$config_file"