Update scarrs/Upgrade-Sonarr.sh
This commit is contained in:
parent
6de25e8851
commit
4751d34c0c
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ CreateContainer () {
|
|||
GetNewVer () {
|
||||
serv="$1"
|
||||
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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue