summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorPetrus <silencly07@gmail.com>2020-06-07 04:51:49 +0800
committerGitHub <noreply@github.com>2020-06-06 16:51:49 -0400
commitc25bac2cf9c70a25a3ff3182f6a0f0bd11bf2276 (patch)
tree1b9ed6fe806f2b7804162abb6d03f7529dbb8fc9 /bin
parent86b2d78f0b3386ca15a21ef3931a69fac09e5b20 (diff)
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 (limited to 'bin')
-rwxr-xr-xbin/mw2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/mw b/bin/mw
index 1d7ed07..5293c5d 100755
--- 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 ;}