Skip to content

Instantly share code, notes, and snippets.

View younisshah's full-sized avatar
💤
I may be slow to respond.

Younis Shah younisshah

💤
I may be slow to respond.
  • Temasek
  • Singapore
View GitHub Profile
@younisshah
younisshah / private-github-release-download.sh
Created July 17, 2017 10:08 — forked from illepic/private-github-release-download.sh
Download the latest release binary from a private GitHub repo. (i.e. a .tar.gz that you have manually uploaded in a GitHub release). Update OAUTH_TOKEN, OWNER, REPO, FILE_NAME with your custom values.
#!/usr/bin/env bash
# Authorize to GitHub to get the latest release tar.gz
# Requires: oauth token, https://help.github.com/articles/creating-an-access-token-for-command-line-use/
# Requires: jq package to parse json
# Your oauth token goes here, see link above
OAUTH_TOKEN="34k234lk234lk2j3lk4j2l3k4j2kj3lk"
# Repo owner (user id)
OWNER="your-user-name"