Skip to content

Commit

Permalink
re-introduce the test for existence of file
Browse files Browse the repository at this point in the history
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 authored and t8m committed Oct 16, 2023
1 parent 1a6bed1 commit 7700b14
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit 7700b14

Please sign in to comment.