More efficiently make use of the exit status

This commit is contained in:
Devin Teske
2016-12-13 00:27:56 +00:00
parent 1c61211223
commit 6e038cc2eb
+2 -6
View File
@@ -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