Date: Tue, 13 Dec 2016 01:44:18 +0000 (UTC) From: Devin Teske <dteske@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r309968 - head/usr.sbin/bsdinstall/scripts Message-ID: <201612130144.uBD1iIDQ046410@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612130144.uBD1iIDQ046410>