Skip to content

Commit

Permalink
remove missing flag for Linux (#6)
Browse files Browse the repository at this point in the history
Signed-off-by: hectorj2f <hector@chainguard.dev>
  • Loading branch information
hectorj2f committed Mar 4, 2024
1 parent 48f51f7 commit 4fafa4b
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion action.yaml
Expand Up @@ -40,8 +40,22 @@ runs:
shaprog() {
case ${{ runner.os }} in
Linux)
sha256sum --ignore-missing --check $2
case ${{ runner.arch }} in
X64)
cat $2 | grep gptscript-v${{ inputs.gptscript-release }}-linux-amd64.tar.gz | sha256sum -c
;;
ARM64)
cat $2 | grep gptscript-v${{ inputs.gptscript-release }}-linux-arm64.tar.gz | sha256sum -c
;;
*)
log_error "unsupported architecture $arch"
exit 1
;;
esac
;;
macOS)
shasum -a256 --ignore-missing --check $2
;;
Expand Down

0 comments on commit 4fafa4b

Please sign in to comment.