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