Skip to content

Commit

Permalink
fix: use only the hash
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKreil committed Aug 8, 2024
1 parent 84ad333 commit bfc1afe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/make_formula.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ cd "$(dirname "$0")/../Formula"
version=$(curl -s 'https://api.github.com/repos/versatiles-org/versatiles-rs/tags' | jq -r 'first(.[] | .name | select(startswith("v")))')
url_arm="https://github.com/versatiles-org/versatiles-rs/releases/download/${version}/versatiles-macos-aarch64.tar.gz"
url_int="https://github.com/versatiles-org/versatiles-rs/releases/download/${version}/versatiles-macos-x86_64.tar.gz"
sha_arm=$(curl -Ls "$url_arm.sha256")
sha_int=$(curl -Ls "$url_int.sha256")
sha_arm=$(curl -Ls "$url_arm.sha256" | cut -d " " -f 1)
sha_int=$(curl -Ls "$url_int.sha256" | cut -d " " -f 1)

if [[ ${#sha_arm} != 64 ]] | [[ ${#sha_int} != 64 ]]; then
echo "SHA has wrong size:"
Expand Down

0 comments on commit bfc1afe

Please sign in to comment.