mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-08-13 12:33:30 +02:00
fix
This commit is contained in:
parent
5e33e9f5f1
commit
d621d6952a
1 changed files with 3 additions and 1 deletions
4
acme.sh
4
acme.sh
|
|
@ -7011,7 +7011,9 @@ installcronjob() {
|
|||
#failure must abort: piping an incomplete list back into 'crontab -'
|
||||
#would wipe the user's existing cron jobs (issue 3079)
|
||||
_cron_list_err="$($_CRONTAB -l 2>&1 >/dev/null)"
|
||||
if echo "$_cron_list_err" | grep -i "no crontab\|no fcrontab\|can't open" >/dev/null; then
|
||||
#multiple -e instead of \| : BRE alternation is a GNU extension that
|
||||
#BSD grep does not support
|
||||
if echo "$_cron_list_err" | grep -i -e "no crontab" -e "no fcrontab" -e "can't open" >/dev/null; then
|
||||
_cron_entries=""
|
||||
else
|
||||
_err "Can not list the current cron jobs: $_cron_list_err"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue