commit c25bac2cf9c70a25a3ff3182f6a0f0bd11bf2276
parent 86b2d78f0b3386ca15a21ef3931a69fac09e5b20
Author: Petrus <silencly07@gmail.com>
Date: Sun, 7 Jun 2020 04:51:49 +0800
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.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/mw b/bin/mw
@@ -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 ;}