From 18629d0fddb382271a712ecddd5f9884c3f034cd Mon Sep 17 00:00:00 2001 From: neil Date: Sun, 24 Jan 2016 10:28:53 +0800 Subject: [PATCH] minor, use WORKING_DIR/le.sh to run cronjob. removes the dependency to "which" command. --- le.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/le.sh b/le.sh index f57d7e0b..ec3139a0 100755 --- a/le.sh +++ b/le.sh @@ -888,9 +888,7 @@ installcronjob() { _initpath _info "Installing cron job" if ! crontab -l | grep 'le.sh cron' ; then - if command -v "le.sh" > /dev/null ; then - lesh="$(which le.sh)" - elif [ -f "$WORKING_DIR/le.sh" ] ; then + if [ -f "$WORKING_DIR/le.sh" ] ; then lesh="\"$WORKING_DIR\"/le.sh" else _err "Can not install cronjob, le.sh not found."