git-fork | update to match REST-API auth standards as of 2021-06

- Removed prompt for OATH Token
- Change prompt from 'password' to 'GitHub Personal Access Token'
This commit is contained in:
Don Harper 2021-06-03 20:19:56 -05:00
parent 206fe7ccfb
commit 4a4c5296f3

View file

@ -14,10 +14,8 @@ test -z "$url" && abort "github repo needs to be specified as an argument"
echo "Enter your github username"
read user
[ -n "$user" ] || abort "git username required"
echo "Enter github password for user \"$user\""
echo "Enter github Personal Access Token for user \"$user\""
read -s passwd
echo "Enter github two-factor authentication code (leave blank if not set up)"
read MFA_CODE
# extract owner + project from repo url
project=${url##*/}