We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 90c6a1b + 198b4fc commit 362c2c0Copy full SHA for 362c2c0
entrypoint.sh
@@ -30,6 +30,7 @@ WRK_JSON="workspace.json"
30
ACC="$VTEX_ACCOUNT"
31
KEY="$VTEX_APP_KEY"
32
TKN="$VTEX_APP_TOKEN"
33
+LOG="Logged into"
34
35
WRK=${VTEX_WORKSPACE:-master}
36
BIN=${VTEX_BIN:-vtex}
@@ -74,7 +75,7 @@ if [[ $AUT == 'true' ]]; then
74
75
76
# Test to test authentication
77
print "Checking authentication"
- CHECK=$($BIN whoami | grep $ACC) || error "Something very odd happened, sorry about that" 9
78
+ CHECK=$($BIN whoami --verbose | grep "$ACC" | grep "$LOG" ) || error "Authentication failed, check your credentials!" 9
79
[[ -n $CHECK ]] && print ok || error "failed login" 10
80
echo $CHECK
81
else
0 commit comments