Corrected calculation of Canyon download URL (#3226)

This commit is contained in:
Geoff Bourne authored and GitHub committed 2025-01-03 17:01:32 -06:00
1 parent 621bafb4f2
commit 03f9037668
2 files changed
+16 -3

No files matched your search

+3 -3
View File
@@ -18,10 +18,10 @@ githubUrl="https://github.com/KoboDev/SupplyAndDemand/releases/download"
canyonBuildJSON=$(curl -fsSL "${canyonJob}/${CANYON_BUILD}/api/json")
buildRelPath=$(
jq '.artifacts[0].relativePath' <<< "$canyonBuildJSON"
jq -r '.artifacts[0].relativePath' <<< "$canyonBuildJSON"
)
buildNumber=$(
jq '.number'<<< "$canyonBuildJSON"
jq -r '.number'<<< "$canyonBuildJSON"
)
baseName=$(basename "${buildRelPath}")
@@ -50,7 +50,7 @@ if [ ! -f "$SERVER" ]; then
fi
curl -fsSL -o "$SERVER" "$downloadUrl"
if [ ! -f "$SERVER" ]; then
logError "Failed to download from $downloadUrl (status=$?)"
logError "Failed to download from $downloadUrl"
exit 3
fi
fi