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

7 lines
217 B
Bash
Raw Normal View History

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