[Library/Homebrew/cmd/update.sh] Add support for token provided w/o user in URL
This commit is contained in:
parent
3619636f7f
commit
2833a217e9
@ -650,6 +650,9 @@ EOS
|
||||
elif [[ -n "${BASH_REMATCH[4]}" ]]
|
||||
then
|
||||
CURL_GITHUB_API_ARGS=("--header" "Authorization: token ${BASH_REMATCH[4]}")
|
||||
elif [[ -n "${BASH_REMATCH[2]}" ]]
|
||||
then
|
||||
CURL_GITHUB_API_ARGS=("--header" "Authorization: token ${BASH_REMATCH[2]}")
|
||||
else
|
||||
CURL_GITHUB_API_ARGS=()
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user