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

7 lines
218 B
Bash
Raw Normal View History

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