Skip to content

Commit

Permalink
fix(srs): Detect shasum utility when downloading lagrange
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Feb 14, 2023
1 parent 756d717 commit f7ed1dc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion 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 f7ed1dc

Please sign in to comment.