svn commit: r309968 - head/usr.sbin/bsdinstall/scripts
Devin Teske
dteske at FreeBSD.org
Tue Dec 13 01:44:19 UTC 2016
Author: dteske
Date: Tue Dec 13 01:44:18 2016
New Revision: 309968
URL: https://svnweb.freebsd.org/changeset/base/309968
Log:
Properly quote variable
Modified:
head/usr.sbin/bsdinstall/scripts/wlanconfig
Modified: head/usr.sbin/bsdinstall/scripts/wlanconfig
==============================================================================
--- head/usr.sbin/bsdinstall/scripts/wlanconfig Tue Dec 13 01:42:13 2016 (r309967)
+++ head/usr.sbin/bsdinstall/scripts/wlanconfig Tue Dec 13 01:44:18 2016 (r309968)
@@ -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"
More information about the svn-src-all
mailing list