Skip to content

Commit 198b4fc

Browse files
authored
chore: 🤖 added one more check on login step
1 parent 90c6a1b commit 198b4fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

entrypoint.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ WRK_JSON="workspace.json"
3030
ACC="$VTEX_ACCOUNT"
3131
KEY="$VTEX_APP_KEY"
3232
TKN="$VTEX_APP_TOKEN"
33+
LOG="Logged into"
3334

3435
WRK=${VTEX_WORKSPACE:-master}
3536
BIN=${VTEX_BIN:-vtex}
@@ -74,7 +75,7 @@ if [[ $AUT == 'true' ]]; then
7475

7576
# Test to test authentication
7677
print "Checking authentication"
77-
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
7879
[[ -n $CHECK ]] && print ok || error "failed login" 10
7980
echo $CHECK
8081
else

0 commit comments

Comments
 (0)