svn commit: r309980 - head/usr.sbin/bsdinstall/scripts

Devin Teske dteske at FreeBSD.org
Tue Dec 13 02:14:42 UTC 2016


Author: dteske
Date: Tue Dec 13 02:14:40 2016
New Revision: 309980
URL: https://svnweb.freebsd.org/changeset/base/309980

Log:
  In awk, if you're going to append a newline to your printf
  AND you're going to print only the argument, just use print

Modified:
  head/usr.sbin/bsdinstall/scripts/wlanconfig

Modified: head/usr.sbin/bsdinstall/scripts/wlanconfig
==============================================================================
--- head/usr.sbin/bsdinstall/scripts/wlanconfig	Tue Dec 13 02:13:20 2016	(r309979)
+++ head/usr.sbin/bsdinstall/scripts/wlanconfig	Tue Dec 13 02:14:40 2016	(r309980)
@@ -278,7 +278,7 @@ while :; do
 done
 
 [ "$ENCRYPTION" ] || ENCRYPTION=$( echo "$NETWORKS" |
-	awk -F '\t' "/^\"$NETWORK\"\t/ { printf \"%s\n\", \$2 }" )
+	awk -F '\t' "/^\"$NETWORK\"\t/ { print \$2 }" )
 
 if echo $ENCRYPTION | grep -q 'PSK'; then
 	PASS=$( $DIALOG \


More information about the svn-src-all mailing list