mirror of
https://github.com/DictXiong/dotfiles.git
synced 2024-11-24 17:37:01 +08:00
Compare commits
1 Commits
94e26a3072
...
b2bed1a2b5
Author | SHA1 | Date | |
---|---|---|---|
b2bed1a2b5 |
|
@ -203,10 +203,9 @@ install_crontab()
|
||||||
if [[ -x $(command -v crontab) ]]; then
|
if [[ -x $(command -v crontab) ]]; then
|
||||||
fmt_note "installing \"$CRON_JOB\" to crontab ..."
|
fmt_note "installing \"$CRON_JOB\" to crontab ..."
|
||||||
if ! crontab -l 1>/dev/null 2>&1; then
|
if ! crontab -l 1>/dev/null 2>&1; then
|
||||||
echo "$CRON_JOB" | crontab -
|
echo -n | crontab -
|
||||||
else
|
|
||||||
( crontab -l | grep -vxF "${CRON_JOB}" | grep -v "no crontab for"; echo "$CRON_JOB" ) | crontab -
|
|
||||||
fi
|
fi
|
||||||
|
( crontab -l | grep -vxF "${CRON_JOB}" | grep -v "no crontab for"; echo "$CRON_JOB" ) | crontab -
|
||||||
else
|
else
|
||||||
fmt_warning "crontab does not exist. skipping ..."
|
fmt_warning "crontab does not exist. skipping ..."
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user