fix uninstall crontab

This commit is contained in:
neil 2016-02-19 22:58:10 +08:00
parent f9a1b64116
commit 0f793850c6
1 changed files with 1 additions and 1 deletions

2
le.sh
View File

@ -1046,7 +1046,7 @@ uninstallcronjob() {
cr="$(crontab -l | grep 'le.sh cron')"
if [ "$cr" ] ; then
crontab -l | sed "/le.sh cron/d" | crontab -
LE_WORKING_DIR="$(echo "$cr" | cut -d ' ' -f 7 | cut -d '=' -f 2 | tr -d '"')"
LE_WORKING_DIR="$(echo "$cr" | cut -d ' ' -f 6 | cut -d '=' -f 2 | tr -d '"')"
_info LE_WORKING_DIR "$LE_WORKING_DIR"
fi
_initpath