Skip to content

Commit cc7882a

Browse files
cognifloydblag
andauthored
Fix bash conditional syntax
Co-authored-by: blag <blag@users.noreply.github.com>
1 parent ea66d5a commit cc7882a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.circle/deployment

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ source ~/ci/tools/functions.sh
2727

2828
DEFAULT_BRANCH=$(_gh_default_branch)
2929
# Give a good error message after the first use of github API in this script.
30-
if $? != 0; then
30+
if [[ $? != 0 ]]; then
3131
echo "Error retrieving data with github graphql API."
3232
echo "The GitHub PAT might need to be regenerated:"
3333
echo "https://github.com/settings/tokens/new?scopes=public_repo&description=CircleCI%3A%20stackstorm-${PACK_NAME}"

0 commit comments

Comments
 (0)