Skip to content

Commit a01b40d

Browse files
fix: get_token 2
1 parent 3da4d0a commit a01b40d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/init.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if ! command -v jq >/dev/null; then
88
fi
99

1010
function get_token {
11-
local res=$(curl --retry 5 -X POST -H "Content-Type: application/json" -d '{"email": "'"$ADMIN_EMAIL"'", "password": "'"$ADMIN_PASSWORD"'"}' $DIRECTUS_URL/auth/login)
11+
local res=$(curl --fail --retry 5 -X POST -H "Content-Type: application/json" -d '{"email": "'"$ADMIN_EMAIL"'", "password": "'"$ADMIN_PASSWORD"'"}' $DIRECTUS_URL/auth/login)
1212
echo "$res"
1313
}
1414

0 commit comments

Comments
 (0)