Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty line at .profile file #41

Open
Yanik39 opened this issue Jan 11, 2024 · 0 comments
Open

Empty line at .profile file #41

Yanik39 opened this issue Jan 11, 2024 · 0 comments
Labels

Comments

@Yanik39
Copy link

Yanik39 commented Jan 11, 2024

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.

@udhos udhos added the bug label Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants