Skip to content

Commit

Permalink
fix(srs): Detect shasum utility when downloading lagrange (AztecProto…
Browse files Browse the repository at this point in the history
  • Loading branch information
phated authored Feb 14, 2023
1 parent d1ed926 commit 4a0f105
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion barretenberg/cpp/srs_db/download_ignition_lagrange.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,14 @@ cd lagrange
num_transcripts=${1:-25}
ARGS=$(seq 1 $num_transcripts)

if command -v sha256sum > /dev/null; then
SHASUM=sha256sum
else
SHASUM="shasum -a 256"
fi

checksum() {
grep transcript_${1}.dat checksums | sha256sum -c
grep transcript_${1}.dat checksums | $SHASUM -c
return $?
}

Expand Down

0 comments on commit 4a0f105

Please sign in to comment.