summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-04-24 08:03:37 -0400
committerLuke Smith <luke@lukesmith.xyz>2019-04-24 08:03:37 -0400
commitc9efc9f85c4ff860fddc4f33af5f5117c1600da1 (patch)
treec11bc81f07891d4fa0c0806a2469c6ac759457b3
parent4a931faf3b8af53a3a4214f3e8bc6deaadac001a (diff)
cron for debian
-rwxr-xr-xbin/mw2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/mw b/bin/mw
index 10da0b7..e5fb9b0 100755
--- a/bin/mw
+++ b/bin/mw
@@ -227,7 +227,7 @@ delete() { sed -i "/IMAPStore $title-remote$/,/# End profile/d" "$mbsyncrc"
sed -i "/account $title/,/^\(\s*$\|account\)/d" "$HOME/.config/msmtp/config"
}
-choosecron() { ! pgrep crond >/dev/null && echo "No cron manager running. Install/enable one and then select this option again." && return 1
+choosecron() { ! pgrep -x cron\|crond >/dev/null && echo "No cron manager running. Install/enable one and then select this option again." && return 1
if crontab -l | grep mailsync >/dev/null; then
echo "Active mail sync cronjob detected. Do you want to remove it?"
printf "\033[36m\t"