mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-01-04 20:32:19 +08:00
minor, use WORKING_DIR/le.sh to run cronjob. removes the dependency to "which" command.
This commit is contained in:
4
le.sh
4
le.sh
@@ -888,9 +888,7 @@ installcronjob() {
|
|||||||
_initpath
|
_initpath
|
||||||
_info "Installing cron job"
|
_info "Installing cron job"
|
||||||
if ! crontab -l | grep 'le.sh cron' ; then
|
if ! crontab -l | grep 'le.sh cron' ; then
|
||||||
if command -v "le.sh" > /dev/null ; then
|
if [ -f "$WORKING_DIR/le.sh" ] ; then
|
||||||
lesh="$(which le.sh)"
|
|
||||||
elif [ -f "$WORKING_DIR/le.sh" ] ; then
|
|
||||||
lesh="\"$WORKING_DIR\"/le.sh"
|
lesh="\"$WORKING_DIR\"/le.sh"
|
||||||
else
|
else
|
||||||
_err "Can not install cronjob, le.sh not found."
|
_err "Can not install cronjob, le.sh not found."
|
||||||
|
|||||||
Reference in New Issue
Block a user