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