prettybat: Fix short flags passed to bat

Fixes #87.
This commit is contained in:
Ethan P 2023-03-24 11:01:56 -07:00
parent daf888f5ed
commit e609d1a2c5
No known key found for this signature in database
GPG Key ID: B29B90B1B228FEBC

View File

@ -289,7 +289,9 @@ while shiftopt; do
# bat options
-*) {
BAT_ARGS+=("$OPT=$OPT_VAL")
if [[ -n "$OPT_VAL" ]]; then BAT_ARGS+=("$OPT=$OPT_VAL");
else BAT_ARGS+=("$OPT");
fi
} ;;
# Files