Skip to content

Commit

Permalink
Merge pull request #10 from jdx/master
Browse files Browse the repository at this point in the history
rename OAUTH_TOKEN to GITHUB_API_TOKEN
  • Loading branch information
luizm authored Dec 1, 2023
2 parents b160a52 + 4301f50 commit 780d78d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/list-all
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

releases_url="https://api.github.com/repos/koalaman/shellcheck/releases"

if [ -n "$OAUTH_TOKEN" ]; then
cmd="curl -s -H 'Authorization: token $OAUTH_TOKEN' $releases_url"
if [ -n "$GITHUB_API_TOKEN" ]; then
cmd="curl -s -H 'Authorization: token $GITHUB_API_TOKEN' $releases_url"
else
cmd="curl -s $releases_url"
fi
Expand Down

0 comments on commit 780d78d

Please sign in to comment.