Correctly quote variable being tested.

This commit is contained in:
Guido Falsi
2022-09-19 18:26:17 +02:00
parent 9073190604
commit f2296e20b4

View File

@@ -682,7 +682,7 @@ vm::bhyve_device_sound(){
if config::yesno "sound"; then
_devices="${_devices} -s ${_slot}:0,hda,play=${_play}"
if [ -n ${_rec} ]; then
if [ -n "${_rec}" ]; then
_devices="${_devices},rec=${_rec}"
fi