tree-sitter: allow token-less execution

main
Roman Volosatovs 2 years ago
parent a39a11681a
commit d5a2fbcf8d
No known key found for this signature in database
GPG Key ID: 216DD5F8CA6618A1
  1. 4
      pkgs/development/tools/parsing/tree-sitter/update.nix

@ -366,7 +366,7 @@ let
set -euo pipefail
args=( '--silent' )
if [ -n "$GITHUB_TOKEN" ]; then
if [ -n "''${GITHUB_TOKEN:-}" ]; then
args+=( "-H" "Authorization: token ''${GITHUB_TOKEN}" )
fi
args+=( "https://api.github.com/repos/${urlEscape orga}/${urlEscape repo}/releases/latest" )
@ -390,7 +390,7 @@ let
set -euo pipefail
args=( '--silent' )
if [ -n "$GITHUB_TOKEN" ]; then
if [ -n "''${GITHUB_TOKEN:-}" ]; then
args+=( "-H" "Authorization: token ''${GITHUB_TOKEN}" )
fi
args+=( 'https://api.github.com/orgs/${urlEscape orga}/repos?per_page=100' )

Loading…
Cancel
Save