Skip to content

Commit

Permalink
Merge pull request #11 from awoods/fixity
Browse files Browse the repository at this point in the history
Ensure premis:hasMessageDigestAlgorithm not mistaken for result
  • Loading branch information
whikloj authored Jul 11, 2017
2 parents f3a6393 + b528b5e commit 35794fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fixity_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ resultCheck 201 $HTTP_RES
echo "Get a fixity result"
HTTP_RES=$(curl $CUSTOM_CURL_OPTS -XGET -u${AUTH_USER}:${AUTH_PASS} ${FEDORA_URL}${PARENT}/image/fcr:fixity)
resultCheckInHeaders 200 "$HTTP_RES"
TEMP=( $(echo "$HTTP_RES" | grep 'premis:hasMessageDigest' | sed -e 's/^[[:blank:]]*//' -e 's/[[:blank:]]*$//') )
TEMP=( $(echo "$HTTP_RES" | grep -v 'premis:hasMessageDigestAlgorithm' | grep 'premis:hasMessageDigest' | sed -e 's/^[[:blank:]]*//' -e 's/[[:blank:]]*$//') )
FIXITY=${TEMP[1]}


Expand Down

0 comments on commit 35794fb

Please sign in to comment.