Skip to content

Instantly share code, notes, and snippets.

View nikosev's full-sized avatar

Nick Evangelou nikosev

View GitHub Profile
@nikosev
nikosev / download.sh
Last active March 27, 2019 13:49 — forked from josh-padnick/download.sh
Download a private binary release file from GitHub in bash
#!/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.
#