diff --git a/st2common/bin/st2-self-check b/st2common/bin/st2-self-check index ef06272e80..edb213b968 100644 --- a/st2common/bin/st2-self-check +++ b/st2common/bin/st2-self-check @@ -52,9 +52,9 @@ elif [ ! -z ${ST2_BASE_URL+x} ]; then PROTOCOL="https" fi elif [ -e "${ST2_CLI_CONFIG_FILE}" ]; then - if [ ! -z "cat ${ST2_CLI_CONFIG_FILE} | grep -E 'https://(.+):9101'" ]; then + if [ ! "cat ${ST2_CLI_CONFIG_FILE} | grep -E 'https://(.+):9101'" ]; then PROTOCOL="https" - elif [ ! -z "cat ${ST2_CLI_CONFIG_FILE} | grep -E 'base_url\s?=\s?https'" ]; then + elif [ ! "cat ${ST2_CLI_CONFIG_FILE} | grep -E 'base_url\s?=\s?https'" ]; then PROTOCOL="https" fi fi