udhos / update-golang

update-golang is a script to easily fetch and install new Golang releases with minimum system intrusion
MIT License
1.86k stars 227 forks source link

Empty line at .profile file #41

Open Yanik39 opened 10 months ago

Yanik39 commented 10 months ago

profile_path_add() { profile_path_remove { echo; echo "# DO NOT EDIT: installed by $path_mark"; echo ""; } >> "$abs_profiled"

That double echo makes script related entries at .profile file go down 1 line on every execution. Like

...
#
# DO NOT EDIT: installed by...

and at second run;

...
#

# DO NOT EDIT: installed by

Empty line between 2 "#" increases every script execution. After few month of cronjob, like 100 empty line between rest of the .profile file entries and script related entries.