Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Dec 2016 00:27:56 +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: r309962 - head/usr.sbin/bsdinstall/scripts
Message-ID:  <201612130027.uBD0Rub9014035@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612130027.uBD0Rub9014035>