Commit 18629d0f authored by neil's avatar neil
Browse files

minor, use WORKING_DIR/le.sh to run cronjob. removes the dependency to "which" command.

parent 17c100d6
......@@ -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."
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment