Date: Tue, 13 Dec 2016 02:14:41 +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: r309980 - head/usr.sbin/bsdinstall/scripts Message-ID: <201612130214.uBD2EfIw058709@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612130214.uBD2EfIw058709>