Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1d8a181

Browse files
author
Sergei Vorobev
committed
Move GITHUB_TOKEN in tools/download.sh
1 parent af90f38 commit 1d8a181

3 files changed

Lines changed: 1 addition & 6 deletions

File tree

.travis.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ sudo: required
77
dist: trusty
88
osx_image: xcode8
99

10-
env:
11-
- GITHUB_TOKEN=a27573e27bea23fb05393ead69511b09e3b224be
12-
1310
cache:
1411
directories:
1512
- $HOME/.dotnet

docs/building/linux.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ Of course, this requires a self-hosted copy of PowerShell on Linux.
4040

4141
Fortunately, this is as easy as downloading and installing the package.
4242
Unfortunately, while the repository is still private, the package cannot be downloaded as simply as with `wget`.
43-
We have a script that wraps the GitHub API and uses a personal access token to authorize in order to obtain the package.
4443

4544
The `./tools/download.sh` script will also install the PowerShell package.
4645

@@ -50,7 +49,6 @@ The `./tools/download.sh` script will also install the PowerShell package.
5049
In Bash:
5150

5251
```sh
53-
GITHUB_TOKEN=<replace with your token>
5452
./tools/download.sh
5553

5654
powershell

tools/download.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
[[ -n $GITHUB_TOKEN ]] || { echo >&2 "GITHUB_TOKEN variable is undefined, please provide token"; exit 1; }
3+
GITHUB_TOKEN=a27573e27bea23fb05393ead69511b09e3b224be
44

55
# Authorizes with read-only access to GitHub API
66
curl_() {

0 commit comments

Comments
 (0)