Update scarrs/Upgrade-Sonarr.sh
This commit is contained in:
parent
670a7dd2a5
commit
2d9897862a
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,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 --arg name $serv '.data.repositories.linuxserver[] | select(.name==$name)')"
|
||||||
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