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

re-introduce the test for existence of file #161

Merged
merged 1 commit into from
Oct 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
re-introduce the test for existence of file
If the file does not exist it exits early with error... Let's source
only if files acutually does exist. We still have a sane default.
  • Loading branch information
eworm-de committed Oct 16, 2023
commit 3648067d6e09edff7167675aa35a9804bfa5af6d
4 changes: 3 additions & 1 deletion contrib/0anacron
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ if [ `date +%Y%m%d` = "$day" ]; then
fi

# Check whether run on battery should be allowed
. /etc/default/anacron
if test -r /etc/default/anacron; then
. /etc/default/anacron
fi

if [ "$ANACRON_RUN_ON_BATTERY_POWER" != "yes" ]; then

Expand Down