TrueChartsClone/.containers/apps/nzbhydra2/latest-version.sh

7 lines
219 B
Bash
Executable File

#!/usr/bin/env bash
version=$(curl -sX GET "https://api.github.com/repos/theotherp/nzbhydra2/releases" | jq --raw-output '.[0].tag_name')
version="${version#*v}"
version="${version#*release-}"
printf "%s" "${version}"