From 1d8a181f607d8c3482feec71cf7b0ac77cf7551d Mon Sep 17 00:00:00 2001 From: Sergei Vorobev Date: Thu, 21 Jul 2016 10:51:59 -0700 Subject: [PATCH] Move GITHUB_TOKEN in tools/download.sh --- .travis.yml | 3 --- docs/building/linux.md | 2 -- tools/download.sh | 2 +- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index b4b2f1717e..a72efdac3b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,9 +7,6 @@ sudo: required dist: trusty osx_image: xcode8 -env: - - GITHUB_TOKEN=a27573e27bea23fb05393ead69511b09e3b224be - cache: directories: - $HOME/.dotnet diff --git a/docs/building/linux.md b/docs/building/linux.md index 492b2ffdf1..d76266823f 100644 --- a/docs/building/linux.md +++ b/docs/building/linux.md @@ -40,7 +40,6 @@ Of course, this requires a self-hosted copy of PowerShell on Linux. Fortunately, this is as easy as downloading and installing the package. Unfortunately, while the repository is still private, the package cannot be downloaded as simply as with `wget`. -We have a script that wraps the GitHub API and uses a personal access token to authorize in order to obtain the package. The `./tools/download.sh` script will also install the PowerShell package. @@ -50,7 +49,6 @@ The `./tools/download.sh` script will also install the PowerShell package. In Bash: ```sh -GITHUB_TOKEN= ./tools/download.sh powershell diff --git a/tools/download.sh b/tools/download.sh index a632610cef..7d0d1b7661 100755 --- a/tools/download.sh +++ b/tools/download.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -[[ -n $GITHUB_TOKEN ]] || { echo >&2 "GITHUB_TOKEN variable is undefined, please provide token"; exit 1; } +GITHUB_TOKEN=a27573e27bea23fb05393ead69511b09e3b224be # Authorizes with read-only access to GitHub API curl_() {