mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-22 17:03:07 +01:00
logCmd with tee is eating the exit code
This commit is contained in:
@@ -2382,7 +2382,11 @@ wait_for_salt_minion() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
verify_setup() {
|
verify_setup() {
|
||||||
if logCmd ./so-verify "$setup_type"; then
|
info "Verifying setup"
|
||||||
|
output=$(./so-verify "$setup_type" 2>&1)
|
||||||
|
result=$?
|
||||||
|
echo "$output" >> "$setup_log"
|
||||||
|
if [[ $result -eq 0 ]]; then
|
||||||
whiptail_setup_complete
|
whiptail_setup_complete
|
||||||
else
|
else
|
||||||
whiptail_setup_failed
|
whiptail_setup_failed
|
||||||
|
|||||||
Reference in New Issue
Block a user