Skip to content

Commit

Permalink
zwift-auth: fix invalid variable in latest curl (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
quietvoid authored Oct 2, 2024
1 parent 41bd042 commit fd2cff7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zwift-auth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ AUTHENTICATE_URL=$(curl -sSL --get --cookie "$COOKIE" --cookie-jar "$COOKIE" \
ACCESS_CODE=$(curl -sS --cookie "$COOKIE" --cookie-jar "$COOKIE" \
--data-urlencode "username=$ZWIFT_USERNAME" \
--data-urlencode "password=$ZWIFT_PASSWORD" \
--write-out "%{REDIRECT_URL}" \
--write-out "%{redirect_url}" \
"$AUTHENTICATE_URL" | grep -oP "code=\K.+$")

AUTH_TOKEN_JSON=$(curl -sS --cookie "$COOKIE" --cookie-jar "$COOKIE" \
Expand Down

0 comments on commit fd2cff7

Please sign in to comment.