diff --git a/cron-list.sh b/cron-list.sh index db5f177..be59a8c 100644 --- a/cron-list.sh +++ b/cron-list.sh @@ -14,7 +14,7 @@ if [ ! -f $CRON_LIST ]; then fi echo "Reading current crontab jobs into a variable..." -current_crontab=$(crontab -l 2>/dev/null) +current_crontab=$(crontab -l 2>/dev/null || :) echo "Iterate through the lines of the cron.list file..." while IFS= read -r line; do