diff options
| author | ivan-boikov <ik.boikov.public@protonmail.com> | 2023-11-25 15:34:34 +0100 |
|---|---|---|
| committer | ivan-boikov <ik.boikov.public@protonmail.com> | 2023-11-25 15:34:34 +0100 |
| commit | 16aec06eb45aea4e9d5c127daab6ea281d88006d (patch) | |
| tree | 5ac52c36308a3e1cfc468c60d1d6c9aacba11ce0 /scripts/.local/bin/mailsync | |
| parent | 3fccdd9602a31a0722d6dc1dd4a046abf919eee4 (diff) | |
Scripts
Diffstat (limited to 'scripts/.local/bin/mailsync')
| -rwxr-xr-x | scripts/.local/bin/mailsync | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/.local/bin/mailsync b/scripts/.local/bin/mailsync new file mode 100755 index 0000000..cb00bb7 --- /dev/null +++ b/scripts/.local/bin/mailsync @@ -0,0 +1,13 @@ +#!/bin/sh + +MBSYNC=$(pgrep mbsync) + +if [ -n "$MBSYNC" ]; then + echo "Already running one instance of mbsync or notmuch. Exiting..." + exit 0 +fi + +mbsync -c "$XDG_CONFIG_HOME/mbsync/config" -a + +printf "%s " "Press enter to continue" +read |
