Used json-path of image helper get for vanilla lookup

This commit is contained in:
Geoff Bourne
2021-10-11 15:53:09 -05:00
parent 57d9da96a1
commit 63b919f1a9
3 changed files with 11 additions and 5 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
#!/bin/bash
# shellcheck source=start-utils
. ${SCRIPTS:-/}start-utils
. "${SCRIPTS:-/}start-utils"
isDebugging && set -x
set -o pipefail
@@ -22,7 +22,7 @@ if [ ! -e "$SERVER" ] || [ -n "$FORCE_REDOWNLOAD" ]; then
fi
debug "Found version manifest at $versionManifestUrl"
serverDownloadUrl=$(get "${versionManifestUrl}" | jq --raw-output '.downloads.server.url')
serverDownloadUrl=$(get --json-path '$.downloads.server.url' "${versionManifestUrl}")
result=$?
if [ $result != 0 ]; then
log "ERROR failed to obtain version manifest from $versionManifestUrl ($result)"