make crontab quite (#416)

Let's make crontab a little quiet here, unless for those who set up mail for crontab error handling will be disturbed every few minutes.
This commit is contained in:
Petrus 2020-06-07 04:51:49 +08:00 committed by GitHub
parent 86b2d78f0b
commit c25bac2cf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

2
bin/mw
View File

@ -303,7 +303,7 @@ choosecron() { ! pgrep cron >/dev/null && echo "No cron manager running. Install
read -r minnum
printf "\033[0m"
done
(crontab -l; echo "*/$minnum * * * * $(type mailsync | cut -d' ' -f3)") | crontab - &&
(crontab -l; echo "*/$minnum * * * * $(type mailsync | cut -d' ' -f3)") >/dev/null | crontab - &&
echo "Cronjob added. Mail will sync every $minnum minutes. Be sure you have your cron manager running."
fi ;}