Last active
August 25, 2023 04:23
-
-
Save jkitching/1e6bab9e3fd935aca2169528cd7eb497 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# keyring tool is provided by Python keyring package | |
username="your.email@gmail.com" | |
read -sp "$username app password: " password | |
echo | |
input="$username\n$password\n" | |
json=`echo -e $input | docker run -i gpsoauth_login` | |
echo $json | |
token=`echo $json | jq '.Token'` | |
echo $token | keyring set gpsoauth-token "$username" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment