Skip to content

Commit

Permalink
Update migration-script-ubuntu.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
JayanaGunaweera01 authored Jun 28, 2023
1 parent 5f9d2f4 commit e6c5d41
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ echo "${GREEN}==> Navigated to home folder successfully${RESET}"
# Generate access token
access_token=$(curl --location --request POST 'https://oauth2.googleapis.com/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'client_id=$gcpClientId' \
--data-urlencode 'client_secret=$gcpClientSecret' \
--data-urlencode 'refresh_token=$gcpRefreshToken' \
--data-urlencode 'client_id='$gcpClientId'' \
--data-urlencode 'client_secret='$gcpClientSecret'' \
--data-urlencode 'refresh_token='$gcpRefreshToken'' \
--data-urlencode 'grant_type=refresh_token' | jq -r '.access_token')
echo "$access_token"
# Check if the response contains any error message
Expand Down

0 comments on commit e6c5d41

Please sign in to comment.