1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-03-28 12:42:13 +02:00
ripgrep/ci/sha256.sh
Andrew Gallant c2bf9e3d45 fix brew
2016-09-21 17:36:46 -04:00

16 lines
384 B
Bash

#!/bin/sh
if [ $# != 1 ]; then
echo "Usage: $(basename $0) version" >&2
exit 1
fi
version="$1"
for arch in i686 x86_64; do
for target in apple-darwin unknown-linux-musl; do
url="https://github.com/BurntSushi/ripgrep/releases/download/$version/ripgrep-$version-$arch-$target.tar.gz"
sha=$(curl -L -s "$url" | sha256sum)
echo $version-$arch-$target $sha
done
done