summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-05-01 19:54:24 -0400
committerGitHub <noreply@github.com>2019-05-01 19:54:24 -0400
commited6ed5854aadc6cc1440e2a7b7b3d70aaa56ae00 (patch)
treed4b6d42a4c82d582824d8a328b952c070c6b8f75 /bin
parentbe2c4c5baa88d2ddc90b4917c58985f6d5d938f8 (diff)
parentcff2554231b5dce228795acaf02b5a69cb7d362e (diff)
Merge pull request #186 from dmsalomon/mailsync-param
Mailsync: only pass -a to mbsync when no args
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mailsync7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/mailsync b/bin/mailsync
index aea3aee..8ae8758 100755
--- a/bin/mailsync
+++ b/bin/mailsync
@@ -21,7 +21,12 @@ echo " 🔃" > /tmp/imapsyncicon_$USER
pkill -RTMIN+12 i3blocks
# Run mbsync. You can feed this script different settings.
-mbsync -a "$@"
+if [ $# -eq 0 ]; then
+ mbsync -a
+else
+ mbsync "$@"
+fi
+
rm -f /tmp/imapsyncicon_$USER
pkill -RTMIN+12 i3blocks