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

7 lines
220 B
Bash
Executable File

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