Skip to content
Snippets Groups Projects

Resolve "gccsetup.sh doesn't follow symlinks when appending gcc-configuration to .bashrc"

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -312,7 +312,7 @@ function installNewVersion {
printf "\n" >> $bashrc_file
fi
# append text to file
sed -i '$a'"$bashrc_identifier\n$bashrc_note\n$bashrc_entry\n$bashrc_identifier\n" $bashrc_file
sed -i --follow-symlinks '$a'"$bashrc_identifier\n$bashrc_note\n$bashrc_entry\n$bashrc_identifier\n" $bashrc_file
# print note
printInfo "Your $bashrc_file has been updated. You need to source it to apply the changes in your environment.\n"
read -p " Understood!"
Loading