Properly quote variable

This commit is contained in:
Devin Teske 2016-12-13 01:44:18 +00:00
parent a51195769a
commit 66ef7d9455

View File

@ -189,8 +189,8 @@ if [ "$BSDINSTALL_CONFIGCURRENT" ]; then
# Get current country/regdomain for selected interface
WLAN_IFACE=$( wpa_cli ifname | tail -1 )
INPUT=$( ifconfig "$WLAN_IFACE" list regdomain | head -1 )
DEF_REGDOMAIN=$( echo $INPUT | cut -w -f 2 )
DEF_COUNTRY=$( echo $INPUT | cut -w -f 4 )
DEF_REGDOMAIN=$( echo "$INPUT" | cut -w -f 2 )
DEF_COUNTRY=$( echo "$INPUT" | cut -w -f 4 )
[ "$DEF_REGDOMAIN" = 0 ] && DEF_REGDOMAIN="<not selected>"
[ "$DEF_COUNTRY" = 0 ] && DEF_COUNTRY="<not selected>"
f_dialog_title "Regdomain/country"