Skip to content

Commit 3da4d0a

Browse files
fix: get_token
1 parent 4d9e7e5 commit 3da4d0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/init.sh

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

1010
function get_token {
11-
local response=$(curl --retry 5 -X POST -H "Content-Type: application/json" -d '{"email": "'"$ADMIN_EMAIL"'", "password": "'"$ADMIN_PASSWORD"'"}' $DIRECTUS_URL/auth/login)
12-
echo "$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)
12+
echo "$res"
1313
}
1414

1515
if [ "$1" = "development" ]; then

0 commit comments

Comments
 (0)