Skip to content

Commit

Permalink
Fix if statements for protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Hoolboom committed Jun 23, 2016
1 parent b1dda01 commit 7321d43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions st2common/bin/st2-self-check
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7321d43

Please sign in to comment.