Skip to content

Instantly share code, notes, and snippets.

@nikosev
nikosev / download.sh
Last active Mar 27, 2019 — forked from josh-padnick/download.sh
Download a private binary release file from GitHub in bash
View download.sh
#!/usr/bin/env bash
#
# This is an adaptation of code I wrote to download a private binary from GitHub. Such...pain.
# Why can't GitHub just offer a standardized URL you can download a release binary from and attach
# your Github Personal Access Token as a header?
#
# Since this code is an adaptation it hasn't been directly tested, but the code it was adapted from works
# and hopefully you can get the missing piece you're after by looking here.
#
View keybase.md

Keybase proof

I hereby claim:

  • I am nikosev on github.
  • I am nikosev (https://keybase.io/nikosev) on keybase.
  • I have a public key ASAEBJoBky1WcpBE28AGEPqloFzbE4pS1pZ1Vy7QShTeVAo

To claim this, I am signing this object: