Properly quote variables
This commit is contained in:
parent
9cf5d05222
commit
4d299034e2
@ -47,8 +47,8 @@ bemenu_cmd()
|
|||||||
--sb $base02 --sf $cyan\
|
--sb $base02 --sf $cyan\
|
||||||
--hb $base02 --hf $cyan\
|
--hb $base02 --hf $cyan\
|
||||||
--scb $base02 --scf $cyan\
|
--scb $base02 --scf $cyan\
|
||||||
--bdr $violet
|
--bdr $violet\
|
||||||
$@
|
"$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
dmenu_cmd()
|
dmenu_cmd()
|
||||||
@ -57,7 +57,7 @@ dmenu_cmd()
|
|||||||
-fn "FiraCodeSemibold-9"\
|
-fn "FiraCodeSemibold-9"\
|
||||||
-nb $base03 -nf $base0\
|
-nb $base03 -nf $base0\
|
||||||
-sb $base02 -sf $cyan\
|
-sb $base02 -sf $cyan\
|
||||||
$@
|
"$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
rofi_cmd()
|
rofi_cmd()
|
||||||
@ -66,9 +66,9 @@ rofi_cmd()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if [[ -n $WAYLAND_DISPLAY ]]; then
|
if [[ -n $WAYLAND_DISPLAY ]]; then
|
||||||
bemenu_cmd $@
|
bemenu_cmd "$@"
|
||||||
elif [[ -n $DISPLAY ]]; then
|
elif [[ -n $DISPLAY ]]; then
|
||||||
rofi_cmd $@
|
rofi_cmd "$@"
|
||||||
else
|
else
|
||||||
echo "Error: No Wayland or X11 display detected" >&2
|
echo "Error: No Wayland or X11 display detected" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user