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
This commit is contained in:
dteske 2016-12-13 02:14:40 +00:00
parent 8179d41c00
commit d811f94e7f

View File

@ -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 \