Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
0f793850
Commit
0f793850
authored
Feb 19, 2016
by
neil
Browse files
fix uninstall crontab
parent
f9a1b641
Changes
1
Show whitespace changes
Inline
Side-by-side
le.sh
View file @
0f793850
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment