Bug fixing

This commit is contained in:
Your Name
2025-05-25 12:51:07 +12:00
parent 37db886a01
commit 0c23bac739
3 changed files with 187 additions and 60 deletions

View File

@@ -83,7 +83,9 @@ echo "upload response: ${UPLOAD_RESPONSE}"
OBJECT_HASH=$(echo ${UPLOAD_RESPONSE} | jq -r '.hash')
# check the hash matches.
CHECK_HASH=$(curl -s "${BASE_URL}/hash/${BASE_TAG}:test1" | jq -r '.hash')
CMD="${BASE_URL}/hash/${BASE_TAG}:test1"
echo "checking hash via ${CMD}"
CHECK_HASH=$(curl -s "${CMD}" | jq -r '.hash')
[ "${OBJECT_HASH}" != "${CHECK_HASH}" ] && die "hash does not match: ${OBJECT_HASH} != ${CHECK_HASH}"
# get md5sum of this file