From a588462265727c66d89ad474569d60bdd8a0f3c3 Mon Sep 17 00:00:00 2001 From: Gerard Hickey Date: Fri, 3 Feb 2017 19:35:07 -0800 Subject: [PATCH] Removed request for password and allow curl to capture it --- bin/git-fork | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bin/git-fork b/bin/git-fork index ef139f850..8cc6b22aa 100755 --- a/bin/git-fork +++ b/bin/git-fork @@ -44,8 +44,6 @@ if [[ -z "$user" ]]; then fi if [[ -z "$token" ]]; then - echo "Enter github password" - read password echo "Enter github two-factor authentication code (leave blank if not set up)" read MFA_CODE fi @@ -55,10 +53,10 @@ header_info='' if [[ -n "$token" ]]; then header_info="-H \"Authorization: token ${token}\"" elif [[ -n "$MFA_CODE" ]]; then - auth_info="-u \"$user:$password\"" + auth_info="-u \"$user\"" header_info="-H \"X-GitHub-OTP: $MFA_CODE\"" elif [[ -n "$password" ]]; then - auth_info="-u \"$user:$password\"" + auth_info="-u \"$user\"" else echo "No login credentials specified." exit 1