diff --git a/setup/so-functions b/setup/so-functions index b4aeb7f53..8fb6cae7e 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -198,7 +198,7 @@ check_hive_init_then_reboot() { local return_val return_val="$(wait_for_file /opt/so/state/thehive.txt 20 5)" - if [ "$return_val" != 0 ]; then + if [[ $return_val != 0 ]]; then return "$return_val" fi