Skip to content

Commit 923b7c2

Browse files
authored
Fix write error $_CRONTAB -l in crontab file (#6920)
1 parent 9b5a189 commit 923b7c2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

acme.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6274,13 +6274,13 @@ installcronjob() {
62746274
return 1
62756275
fi
62766276
_info "Installing cron job"
6277-
if ! $_CRONTAB -l | grep "$PROJECT_ENTRY --cron"; then
6277+
if ! $_CRONTAB -l 2>/dev/null | grep "$PROJECT_ENTRY --cron"; then
62786278
if _exists uname && uname -a | grep SunOS >/dev/null; then
62796279
_CRONTAB_STDIN="$_CRONTAB --"
62806280
else
62816281
_CRONTAB_STDIN="$_CRONTAB -"
62826282
fi
6283-
$_CRONTAB -l | {
6283+
$_CRONTAB -l 2>/dev/null | {
62846284
cat
62856285
echo "$random_minute $random_hour * * * $lesh --cron --home \"$LE_WORKING_DIR\" $_c_entry> /dev/null"
62866286
} | $_CRONTAB_STDIN

0 commit comments

Comments
 (0)