uninstall without crontab.

This commit is contained in:
neil 2016-03-29 21:57:56 +08:00
parent 77546ea5be
commit 37db5b8131
1 changed files with 3 additions and 0 deletions

3
le.sh
View File

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