-
-
Notifications
You must be signed in to change notification settings - Fork 126
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
Don't litter #168
Don't litter #168
Conversation
Rebased on |
Please address stickler errors. |
Stickler CI is telling me to -cd "$(dirname "$0")"
+cd "$(dirname "$0")" || exit 1 Should I? If we go for it, I would suggest something like - cd "$(dirname "$0")" || {
EC=$?
echo >&2 "Could not chdir to the directory containing padd.sh (exit code $EC)"
exit $EC
} |
@yubiuser I just saw your comment after I posted mine. 😅 What change should I make? This? cd "$(dirname "$0")" || exit 1 Or this? cd "$(dirname "$0")" || exit $? Or this? cd "$(dirname "$0")" || {
EC=$?
echo >&2 "Could not chdir to the directory containing padd.sh (exit code $EC)"
exit $EC
} Or something else? |
I like
Because it gives a reason why it's failing. |
@yubiuser Implemented. |
Thanks. I just read the issue thread again and I'm not sure if the proper solution is
What do you think? Additionally, we create the However, I don't see that we use that file in any way. I thinks the whole |
My apologies for interfering, but I think:
|
I think that it is much easier to simply instruct users to keep
Maybe it was added to ensure that no race conditions occur when |
FWIW, I am currently using Void Linux, and it does not have a user-writable |
Rebased on |
Did you intend to modify |
|
Yeah, because the |
I ❤️ "standards" 🤣 - ok, |
chdir to the directory padd.sh is stored in before executing the rest of the script. Prevents the formation of PADD.pid and piHoleVersion files everywhere. Fixes #62
Rebased on |
Changed PR base to |
chdir to the directory padd.sh is stored in before executing the rest of
the script. Prevents the formation of PADD.pid and piHoleVersion files
everywhere.
Fixes #62
By submitting this pull request, I confirm the following:
please fill any appropriate checkboxes, e.g: [X]
git rebase
)