From caf2681891eb3fbe04bd10ba30369ffe8e8616d4 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Fri, 1 Jul 2022 10:00:34 -0400 Subject: [PATCH] remove bashism --- bin/mailsync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/mailsync b/bin/mailsync index 6aba835..f100cd0 100755 --- a/bin/mailsync +++ b/bin/mailsync @@ -76,7 +76,7 @@ if [ "$#" -gt "0" ]; then done accounts=$* fi -[[ ! $accounts ]] && accounts="$(awk '/^Channel/ {print $2}' "$MBSYNCRC")" +[ -z "$accounts" ] && accounts="$(awk '/^Channel/ {print $2}' "$MBSYNCRC")" # Parallelize multiple accounts for account in $accounts; do