uninstall without crontab.

This commit is contained in:
neil 2016-03-29 21:57:56 +08:00
parent 77546ea5be
commit 37db5b8131

3
le.sh
View File

@ -1390,6 +1390,9 @@ installcronjob() {
} }
uninstallcronjob() { uninstallcronjob() {
if ! _exists "crontab" ; then
return
fi
_info "Removing cron job" _info "Removing cron job"
cr="$(crontab -l | grep 'le.sh cron')" cr="$(crontab -l | grep 'le.sh cron')"
if [ "$cr" ] ; then if [ "$cr" ] ; then