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 \
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to