From 37db5b813156203a5003a3c02734f7f09041f786 Mon Sep 17 00:00:00 2001 From: neil Date: Tue, 29 Mar 2016 21:57:56 +0800 Subject: [PATCH] uninstall without crontab. --- le.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/le.sh b/le.sh index 2971b219..2ef8cf0d 100755 --- a/le.sh +++ b/le.sh @@ -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