Browse Source

Fix bug on setup.py when editing symlinks

pull/202/head
Meir Michanie 1 year ago
parent
commit
4246490189
  1. 2
      setup.sh

2
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"

Loading…
Cancel
Save