Properly quote variables

This commit is contained in:
Sheldon Lee 2023-10-02 05:19:29 +08:00
parent 9cf5d05222
commit 4d299034e2

View File

@ -47,8 +47,8 @@ bemenu_cmd()
--sb $base02 --sf $cyan\
--hb $base02 --hf $cyan\
--scb $base02 --scf $cyan\
--bdr $violet
$@
--bdr $violet\
"$@"
}
dmenu_cmd()
@ -57,7 +57,7 @@ dmenu_cmd()
-fn "FiraCodeSemibold-9"\
-nb $base03 -nf $base0\
-sb $base02 -sf $cyan\
$@
"$@"
}
rofi_cmd()
@ -66,9 +66,9 @@ rofi_cmd()
}
if [[ -n $WAYLAND_DISPLAY ]]; then
bemenu_cmd $@
bemenu_cmd "$@"
elif [[ -n $DISPLAY ]]; then
rofi_cmd $@
rofi_cmd "$@"
else
echo "Error: No Wayland or X11 display detected" >&2
exit 1