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 d565728 commit 76f9bd0
Showing 1 changed file with 7 additions and 1 deletion.
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 76f9bd0

Please sign in to comment.