Browse files

do not evaluate NOFILE until needed

If `LASTRUN` is being specified in an argument we want it to be used by
`NOFILE`. By using single quotes in the configuartion we make sure that
the variable is not evaluated until later.
  • Loading branch information...
pigmonkey committed Nov 20, 2016
1 parent 35903d7 commit 25d6951076c9619dc06b1a1d8716c39a393c6b02
Showing with 2 additions and 2 deletions.
  1. +2 −2
@@ -30,7 +30,7 @@ BACKUP="$HOME/bin/"
# indicate that the filesystem is not mounted. In that case, you would place
# your mount command in this string. If you want the script to exit when the
# file does not exist, simply set this to a blank string.
# Define the period, in seconds, for backups to attempt to execute.
# Hourly: 3600
@@ -113,7 +113,7 @@ fi
# was specified, exit.
if [ ! -e "$LASTRUN" ]; then
if [ -n "$NOFILE" ]; then
eval $NOFILE

0 comments on commit 25d6951

Please sign in to comment.