Date: Tue, 13 Dec 2016 02:45:52 +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: r309993 - head/usr.sbin/bsdinstall/scripts Message-ID: <201612130245.uBD2jqtF071085@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dteske Date: Tue Dec 13 02:45:52 2016 New Revision: 309993 URL: https://svnweb.freebsd.org/changeset/base/309993 Log: Why test $? when you can test the command Modified: head/usr.sbin/bsdinstall/scripts/wlanconfig Modified: head/usr.sbin/bsdinstall/scripts/wlanconfig ============================================================================== --- head/usr.sbin/bsdinstall/scripts/wlanconfig Tue Dec 13 02:45:07 2016 (r309992) +++ head/usr.sbin/bsdinstall/scripts/wlanconfig Tue Dec 13 02:45:52 2016 (r309993) @@ -192,8 +192,8 @@ if [ "$BSDINSTALL_CONFIGCURRENT" ]; then [ "$DEF_REGDOMAIN" = 0 ] && DEF_REGDOMAIN="<not selected>" [ "$DEF_COUNTRY" = 0 ] && DEF_COUNTRY="<not selected>" f_dialog_title "Regdomain/country" - f_yesno "Change regdomain/country (now $DEF_REGDOMAIN/$DEF_COUNTRY)?" - if [ $? -eq 0 ]; then + if f_yesno "Change regdomain/country (now $DEF_REGDOMAIN/$DEF_COUNTRY)?" + then while :; do dialog_country_select "$DEF_REGDOMAIN" "$DEF_COUNTRY" if [ $? -eq $SUCCESS ]; then
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612130245.uBD2jqtF071085>