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

Devin Teske dteske at FreeBSD.org
Tue Dec 13 02:47:41 UTC 2016


Author: dteske
Date: Tue Dec 13 02:47:39 2016
New Revision: 309995
URL: https://svnweb.freebsd.org/changeset/base/309995

Log:
  Simplify loop by moving predicate to clause

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

Modified: head/usr.sbin/bsdinstall/scripts/wlanconfig
==============================================================================
--- head/usr.sbin/bsdinstall/scripts/wlanconfig	Tue Dec 13 02:46:36 2016	(r309994)
+++ head/usr.sbin/bsdinstall/scripts/wlanconfig	Tue Dec 13 02:47:39 2016	(r309995)
@@ -194,12 +194,8 @@ if [ "$BSDINSTALL_CONFIGCURRENT" ]; then
 	f_dialog_title "Regdomain/country"
 	if f_yesno "Change regdomain/country ($DEF_REGDOMAIN/$DEF_COUNTRY)?"
 	then
-		while :; do
-			dialog_country_select "$DEF_REGDOMAIN" "$DEF_COUNTRY"
-			if [ $? -eq $SUCCESS ]; then
-				break
-			fi
-		done
+		while ! dialog_country_select "$DEF_REGDOMAIN" "$DEF_COUNTRY"
+		do :; done
 	fi
 fi
 


More information about the svn-src-head mailing list