nixpkgs/pkgs/tools/misc/trackma/update.sh
2022-07-02 11:38:59 -03:00

8 lines
261 B
Bash
Executable file

#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl jq common-updater-scripts
set -eu -o pipefail
version="$(curl --silent "https://api.github.com/repos/z411/trackma/releases" | jq '.[0].tag_name' --raw-output)"
update-source-version trackma "${version:1}"