Skip to content

Commit 08e02ea

Browse files
committed
chore(ci): fix release step environment variables checks
This commit fixes the environment variable shell expansion in the release step of the CircleCI configuration. It also makes sure the variables are not expanded when displaying the error message.
1 parent 68016bf commit 08e02ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ jobs:
9494
- run:
9595
name: Release new version
9696
command: |
97-
if [ -z "BINTRAY_USER" ]; then echo "BINTRAY_USER is not set"; exit 1; fi
98-
if [ -z "BINTRAY_PASS" ]; then echo "BINTRAY_PASS is not set"; exit 1; fi
97+
if [[ -z "$BINTRAY_USER" ]]; then echo '$BINTRAY_USER is not set'; exit 1; fi
98+
if [[ -z "$BINTRAY_PASS" ]]; then echo '$BINTRAY_PASS is not set'; exit 1; fi
9999
cat /dev/null | sbt '+publish'
100100
101101
workflows:

0 commit comments

Comments
 (0)