Date: Tue, 13 Dec 2016 02:07:12 +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: r309976 - head/usr.sbin/bsdinstall/scripts Message-ID: <201612130207.uBD27CZf054611@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dteske Date: Tue Dec 13 02:07:12 2016 New Revision: 309976 URL: https://svnweb.freebsd.org/changeset/base/309976 Log: You don't need parentheses for awk's printf Modified: head/usr.sbin/bsdinstall/scripts/wlanconfig Modified: head/usr.sbin/bsdinstall/scripts/wlanconfig ============================================================================== --- head/usr.sbin/bsdinstall/scripts/wlanconfig Tue Dec 13 02:04:50 2016 (r309975) +++ head/usr.sbin/bsdinstall/scripts/wlanconfig Tue Dec 13 02:07:12 2016 (r309976) @@ -226,7 +226,7 @@ while :; do SCAN_RESULTS=$( wpa_cli scan_results ) NETWORKS=$( echo "$SCAN_RESULTS" | awk -F '\t' ' - /..:..:..:..:..:../ && $5 { printf("\"%s\"\t%s\n", $5, $4) } + /..:..:..:..:..:../ && $5 { printf "\"%s\"\t%s\n", $5, $4 } ' | sort | uniq ) if [ ! "$NETWORKS" ]; then
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612130207.uBD27CZf054611>