davinci-resolve: refactor use downloadTitle instead of name
downloadTitle from BlackMagic has a more consistent naming convention than name "downloadTitle": "DaVinci Resolve 19.0" "name": "DaVinci Resolve 19"
This commit is contained in:
parent
01cf1d5fb6
commit
03a80c7ac2
@ -94,7 +94,7 @@ let
|
||||
} ''
|
||||
DOWNLOADID=$(
|
||||
curl --silent --compressed "$DOWNLOADSURL" \
|
||||
| jq --raw-output '.downloads[] | select(.name | test("^'"$PRODUCT $VERSION"'( Update)?$")) | .urls.Linux[0].downloadId'
|
||||
| jq --raw-output '.downloads[] | .urls.Linux?[]? | select(.downloadTitle | test("^'"$PRODUCT $VERSION"'( Update)?$")) | .downloadId'
|
||||
)
|
||||
echo "downloadid is $DOWNLOADID"
|
||||
test -n "$DOWNLOADID"
|
||||
|
Loading…
Reference in New Issue
Block a user