#!/usr/bin/env bash set -euxo pipefail basedir=".devfiles/bin" repo="$1" shift release_filename="$1" shift out_filename="$basedir/$1" shift curl -sSL "https://github.com/$repo/releases/latest/download/$release_filename" -o "$out_filename" chmod +x "$out_filename"