Properly quote variables
This commit is contained in:
parent
9cf5d05222
commit
4d299034e2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user