svn commit: r309930 - head/usr.sbin/bsdinstall/scripts
Devin Teske
dteske at FreeBSD.org
Mon Dec 12 19:24:34 UTC 2016
Author: dteske
Date: Mon Dec 12 19:24:32 2016
New Revision: 309930
URL: https://svnweb.freebsd.org/changeset/base/309930
Log:
Use ternary operator
Modified:
head/usr.sbin/bsdinstall/scripts/wlanconfig
Modified: head/usr.sbin/bsdinstall/scripts/wlanconfig
==============================================================================
--- head/usr.sbin/bsdinstall/scripts/wlanconfig Mon Dec 12 19:16:35 2016 (r309929)
+++ head/usr.sbin/bsdinstall/scripts/wlanconfig Mon Dec 12 19:24:32 2016 (r309930)
@@ -96,10 +96,7 @@ dialog_country_select()
for (i = 1; i <= NF; i++) {
printf "%s", $i
if ($i ~ /[[:lower:]]/)
- if ($(i+1) ~ /[[:lower:]]/)
- printf "\\\\\\ "
- else
- printf "\n"
+ printf $(i+1) ~ /[[:lower:]]/ ? "\\\\\\ " : "\n"
else
printf " "
}
More information about the svn-src-all
mailing list