diff --git a/init/cron.sh b/init/cron.sh index 563ced8..b84c770 100755 --- a/init/cron.sh +++ b/init/cron.sh @@ -9,8 +9,9 @@ if [ "$BUILDFREQ" == "" ]; then fi # Run the pull script regularly -cmd="$BUILDFREQ * * * * /aux/pull-n-build.sh" -grep "$cmd" /var/spool/cron/crontabs/root || echo "$cmd" >> /var/spool/cron/crontabs/root +target="/aux/pull-n-build.sh" +entry="$BUILDFREQ * * * * $target" +grep "$target" /var/spool/cron/crontabs/root || echo "$entry" >> /var/spool/cron/crontabs/root # start cron daemon (goes into background) crond