]> xenbits.xensource.com Git - people/royger/freebsd.git/commitdiff
More efficiently make use of the exit status
authordteske <dteske@FreeBSD.org>
Tue, 13 Dec 2016 00:27:56 +0000 (00:27 +0000)
committerdteske <dteske@FreeBSD.org>
Tue, 13 Dec 2016 00:27:56 +0000 (00:27 +0000)
usr.sbin/bsdinstall/scripts/wlanconfig

index b81be8d009106a75bd93195ea0c1598308edc22c..b9202044f5020c029f77b989e53828ef1cfe9e3e 100755 (executable)
@@ -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