rwxrob-dot/install/ubuntu/install-hyperfine
2022-02-10 05:08:32 -05:00

8 lines
315 B
Bash
Executable File

#!/bin/sh
set -e
latest="https://api.github.com/repos/sharkdp/hyperfine/releases/latest"
ver=$(curl -sS "$latest" | jq -r .zipball_url) && test -n "$ver"
ver=${ver##*/} && deb="hyperfine_${ver#v}_amd64.deb"
url="https://github.com/sharkdp/hyperfine/releases/download/$ver/$deb"
curl -sSLO "$url" && dpkg -i ./*.deb