[Bug 214933] [patch] bsdinstall: add support for "hidden" Wi-Fi networks
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Dec 3 20:34:28 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214933
--- Comment #13 from Devin Teske <dteske at FreeBSD.org> ---
(In reply to Maxim Filimonov from comment #10)
The following:
ENCRYPTION=$( ... \
... )
[ $? -eq 0 ] || exit 1
Should be instead:
ENCRYPTION=$( ... \
... ) || exit
This is building upon:
a. exit when not given a value, retains the previous status
NOTE: This allows the [meaningful] exit status of dialog(1) to be exposed
instead of being overwritten to one (1)
b. The exit status of VAR=$( ... ) is the exit status of "..." in the sub-shell
NOTE: This allows us to combine the VAR=$( ... ) and the exit-status test, ala
VAR=$( ... ) || exit
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-sysinstall
mailing list