commit ed6ed5854aadc6cc1440e2a7b7b3d70aaa56ae00
parent be2c4c5baa88d2ddc90b4917c58985f6d5d938f8
Author: Luke Smith <luke@lukesmith.xyz>
Date: Wed, 1 May 2019 19:54:24 -0400
Merge pull request #186 from dmsalomon/mailsync-param
Mailsync: only pass -a to mbsync when no args
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git 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