Update scarrs/Upgrade-Sonarr.sh

This commit is contained in:
Techognito 2025-07-24 17:33:30 +02:00
parent 6de25e8851
commit 4751d34c0c

View file

@ -34,7 +34,7 @@ CreateContainer () {
GetNewVer () { GetNewVer () {
serv="$1" serv="$1"
json="$(curl https://api.linuxserver.io/api/v1/images | jq .data.repositories.linuxserver[] | select(.name==$serv))" json="$(curl https://api.linuxserver.io/api/v1/images | jq .data.repositories.linuxserver[] | select(.name==$serv))"
ver="$(echo $json | jq .version | awk -F\" '{print $2}' | awk -F\. '{print $1 "." $2 "." $3}')" ver="$(echo $json | jq .version | awk -F'"' '{print $2}' | awk -F'.' '{print $1 "." $2 "." $3}')"
echo $ver echo $ver
} }