diff options
author | Luke Smith <luke@lukesmith.xyz> | 2021-09-23 13:31:07 -0400 |
---|---|---|
committer | Luke Smith <luke@lukesmith.xyz> | 2021-09-23 13:31:07 -0400 |
commit | c88994e730a290e466565013e044bd0921fe6fbf (patch) | |
tree | 028b3709bfb11776cfab8e48bf2fc1ef05bbf13f /bin/mailsync | |
parent | e8458ace20a1e553df1c6249b9ef27234dd2aafd (diff) |
decrease gnuisms
Diffstat (limited to 'bin/mailsync')
-rwxr-xr-x | bin/mailsync | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/mailsync b/bin/mailsync index bed86a9..9490458 100755 --- a/bin/mailsync +++ b/bin/mailsync @@ -14,7 +14,7 @@ # Run only if user logged in (prevent cron errors) pgrep -u "${USER:=$LOGNAME}" >/dev/null || { echo "$USER not logged in; sync will not run."; exit ;} # Run only if not already running in other instance -pidof mbsync >/dev/null && { echo "mbsync is already running."; exit ;} +pgrep mbsync >/dev/null && { echo "mbsync is already running."; exit ;} # First, we have to get the right variables for the mbsync file, the pass # archive, notmuch and the GPG home. This is done by searching common profile |