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

7 lines
215 B
Bash
Executable File

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