Skip to content

Commit ce5334c

Browse files
authored
Use shasum -a 256 because sha256 is not available in ci (#271)
1 parent 0c8814a commit ce5334c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

dist/brew/template.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# frozen_string_literal: true
22

3-
# testing
43
class ${class_name} < Formula
54
desc '${description}'
65
homepage '${homepage}'

dist/brew/values.bash

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ capture class_name "$(awk 'BEGIN{print toupper(substr("'"$repo_name"'",1,1)) sub
1818
capture description "$(gh repo view --json description --jq .description)"
1919
capture homepage "$(gh api "repos/$GITHUB_REPOSITORY" --jq .homepage)"
2020
capture version "${TAG#v}"
21-
capture darwin_amd64_sha256 "$(sha256 "$REPO_ROOT/vmatch-darwin-amd64.tar.gz" | cut -d= -f2 | tr -d ' ')"
22-
capture darwin_arm64_sha256 "$(sha256 "$REPO_ROOT/vmatch-darwin-arm64.tar.gz" | cut -d= -f2 | tr -d ' ')"
23-
capture linux_amd64_sha256 "$(sha256 "$REPO_ROOT/vmatch-linux-amd64.tar.gz" | cut -d= -f2 | tr -d ' ')"
24-
capture linux_arm64_sha256 "$(sha256 "$REPO_ROOT/vmatch-linux-arm64.tar.gz" | cut -d= -f2 | tr -d ' ')"
21+
capture darwin_amd64_sha256 "$(shasum -a 256 "$REPO_ROOT/vmatch-darwin-amd64.tar.gz" | cut -d ' ' -f1)"
22+
capture darwin_arm64_sha256 "$(shasum -a 256 "$REPO_ROOT/vmatch-darwin-arm64.tar.gz" | cut -d ' ' -f1)"
23+
capture linux_amd64_sha256 "$(shasum -a 256 "$REPO_ROOT/vmatch-linux-amd64.tar.gz" | cut -d ' ' -f1)"
24+
capture linux_arm64_sha256 "$(shasum -a 256 "$REPO_ROOT/vmatch-linux-arm64.tar.gz" | cut -d ' ' -f1)"

0 commit comments

Comments
 (0)