]> xenbits.xensource.com Git - people/royger/freebsd.git/commitdiff
Properly quote variable
authordteske <dteske@FreeBSD.org>
Tue, 13 Dec 2016 01:44:18 +0000 (01:44 +0000)
committerdteske <dteske@FreeBSD.org>
Tue, 13 Dec 2016 01:44:18 +0000 (01:44 +0000)
usr.sbin/bsdinstall/scripts/wlanconfig

index 4b7f559e93d64ed95f2c989e1575bc078a78a369..e247e2d3bd7031bba77e3a5a8baa4bfa08900147 100755 (executable)
@@ -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"