Update scarrs/Upgrade-Sonarr.sh
This commit is contained in:
parent
f7aa4bb410
commit
6de25e8851
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue