Compare commits

..

1 Commits

Author SHA1 Message Date
b2bed1a2b5
Merge 3d4a264a30 into 483f7fd7f3 2024-03-30 17:38:02 +00:00

View File

@ -203,10 +203,9 @@ install_crontab()
if [[ -x $(command -v crontab) ]]; then
fmt_note "installing \"$CRON_JOB\" to crontab ..."
if ! crontab -l 1>/dev/null 2>&1; then
echo "$CRON_JOB" | crontab -
else
( crontab -l | grep -vxF "${CRON_JOB}" | grep -v "no crontab for"; echo "$CRON_JOB" ) | crontab -
echo -n | crontab -
fi
( crontab -l | grep -vxF "${CRON_JOB}" | grep -v "no crontab for"; echo "$CRON_JOB" ) | crontab -
else
fmt_warning "crontab does not exist. skipping ..."
fi