Skip to content

Commit

Permalink
no echos for verify.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhuoxuan-Zhang committed Oct 29, 2024
1 parent 2a2317b commit ef03f8b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions web-index/verify.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/bin/bash
REPO_TOP=$(git rev-parse --show-toplevel)
echo "REPO_TOP: ${REPO_TOP}"
eval_dir="${REPO_TOP}/web-index"
hashes_dir="${eval_dir}/hashes"

Expand All @@ -27,7 +26,6 @@ fi

# verify hashes for all *grams.txt files
for file in $(find ${eval_dir} -name "*grams.txt"); do
echo "Verifying hash for ${file}"
hash=$(sha256sum ${file} | cut -d ' ' -f 1)
expected_hash=$(cat "${hashes_dir}/$(basename ${file})${suffix}.hash")
if [[ "${hash}" != "${expected_hash}" ]]; then
Expand All @@ -36,6 +34,5 @@ for file in $(find ${eval_dir} -name "*grams.txt"); do
echo "Actual: ${hash}"
exit 1
fi
echo "Hash verified for ${file}"
done
echo "web-index $?"
echo $?

0 comments on commit ef03f8b

Please sign in to comment.