From 2a68927cd5d7fe0ceb887f554c875e2f469ab372 Mon Sep 17 00:00:00 2001 From: Petrus Date: Sun, 19 Apr 2020 01:36:29 +0800 Subject: [PATCH] make crontab quite 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. --- bin/mw | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/mw b/bin/mw index 97b0172..fe621f3 100755 --- a/bin/mw +++ b/bin/mw @@ -291,7 +291,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 ;}