From f8da001b7c9f3cb758aaa002dc86e2aa1f1d9a88 Mon Sep 17 00:00:00 2001 From: William Wernert Date: Tue, 12 May 2020 14:19:35 -0400 Subject: [PATCH] [fix] numeric argument required, unquote var --- setup/so-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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