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"