Author: dteske
Date: Tue Dec 13 00:27:56 2016
New Revision: 309962
URL: https://svnweb.freebsd.org/changeset/base/309962

Log:
  More efficiently make use of the exit status

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

Modified: head/usr.sbin/bsdinstall/scripts/wlanconfig
==============================================================================
--- head/usr.sbin/bsdinstall/scripts/wlanconfig Tue Dec 13 00:22:01 2016        
(r309961)
+++ head/usr.sbin/bsdinstall/scripts/wlanconfig Tue Dec 13 00:27:56 2016        
(r309962)
@@ -67,12 +67,8 @@ country_set()
                        --no-label Ignore \
                        --yesno \
                        "Error while applying chosen settings ($error_str)" \
-                       0 0
-               if [ $? -eq $DIALOG_OK ]; then
-                       return $FAILURE # Restart
-               else
-                       return $SUCCESS # Skip
-               fi
+                       0 0 || return $SUCCESS # Skip
+               return $FAILURE # Restart
        else
                awk 'sub(/^\t\t/,"")||1' \
                        > "$BSDINSTALL_TMPETC/rc.conf.net.wlan" <<-EOF
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to