diff --git a/cron.bash b/cron.bash index 0a2ae44..0565223 100755 --- a/cron.bash +++ b/cron.bash @@ -14,7 +14,7 @@ create_cron_job() { cron_line="${minute} ${hour} ${day_of_month} ${month} ${day_of_week} ${command}" # Add the cron job for the specified user. Redirects stderr to stdout. - (crontab -u "yankee -l 2>/dev/null; echo "$cron_line") | crontab -u "$user" - + (crontab -u yankee -l 2>/dev/null; echo "$cron_line") | crontab -u "$user" - echo "Cron job added for user $user:" echo "$cron_line"