Skip to content

Commit 039c9a5

Browse files
author
Patrick Hoolboom
committed
Fix if statements for protocol
1 parent 4f64909 commit 039c9a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

st2common/bin/st2-self-check

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ elif [ ! -z ${ST2_BASE_URL+x} ]; then
5252
PROTOCOL="https"
5353
fi
5454
elif [ -e "${ST2_CLI_CONFIG_FILE}" ]; then
55-
if [ ! -z "cat ${ST2_CLI_CONFIG_FILE} | grep -E 'https://(.+):9101'" ]; then
55+
if [ ! "cat ${ST2_CLI_CONFIG_FILE} | grep -E 'https://(.+):9101'" ]; then
5656
PROTOCOL="https"
57-
elif [ ! -z "cat ${ST2_CLI_CONFIG_FILE} | grep -E 'base_url\s?=\s?https'" ]; then
57+
elif [ ! "cat ${ST2_CLI_CONFIG_FILE} | grep -E 'base_url\s?=\s?https'" ]; then
5858
PROTOCOL="https"
5959
fi
6060
fi

0 commit comments

Comments
 (0)