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
18629d0f
Commit
18629d0f
authored
Jan 24, 2016
by
neil
Browse files
minor, use WORKING_DIR/le.sh to run cronjob. removes the dependency to "which" command.
parent
17c100d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
le.sh
View file @
18629d0f
...
...
@@ -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."
...
...
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