#!/usr/bin/env bash OWNER=go-acme; REPO=lego; \ curl -sL "https://api.github.com/repos/${OWNER}/${REPO}/releases/latest" | \ jq -r '.assets[] | select(.name | test("linux.*amd64"; "i")) | .browser_download_url' | \ head -n1 | xargs -I {} curl -L -O {}