diff --git a/testing/test.sh b/testing/test.sh index 6d46c6f..5d25065 100755 --- a/testing/test.sh +++ b/testing/test.sh @@ -123,7 +123,7 @@ title "2: Check sos hash matches" CMD="${HOSTURL}/hash/${BASE_TAG}:test1" echo "checking hash via ${CMD}" CHECK_HASH=$(curl --fail-with-body -s "${CMD}" | jq -r '.hash') -[ "${OBJECT_HASH}" != "${CHECK_HASH}" ] && die "hash does not match: ${OBJECT_HASH} != ${CHECK_HASH}" +[ "${OBJECT_HASH}" = "${CHECK_HASH}" ] || die "hash does not match: ${OBJECT_HASH} != ${CHECK_HASH}" } function test3() {