Skip to content

Commit

Permalink
Fix shasum invocation, -q is not supported everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
andsens committed Oct 4, 2023
1 parent 058a95d commit 1ee06de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-shasum.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
- name: Checkout the ref referenced in README.md
run: git checkout -q "$(grep -m1 'wget -qO- https' README.md | sed 's#^.*orbit-online/upkg/\([^/]\+\)/upkg\.sh.*$#\1#')"
- name: Check if the shasum from README.md matches the shasum of upkg.sh
run: printf '%s upkg.sh\n' "$(grep -m1 'shasum -qa 256' README.md | sed 's/^.*\([a-f0-9]\{64\}\).*$/\1/')" | shasum -a 256 -c -
run: printf '%s upkg.sh\n' "$(grep -m1 'shasum -a 256' README.md | sed 's/^.*\([a-f0-9]\{64\}\).*$/\1/')" | shasum -a 256 -c -
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ You can also paste this directly into a Dockerfile `RUN` command, no escaping ne

```
bash -ec 'src=$(wget -qO- https://raw.githubusercontent.com/orbit-online/upkg/v0.12.0/upkg.sh); \
shasum -qa 256 -c <(printf "866d456f0dcfdb71d2aeab13f6202940083aacb06d471782cec3561c0ff074b0 -") <<<"$src"; \
shasum -a 256 -c <(printf "866d456f0dcfdb71d2aeab13f6202940083aacb06d471782cec3561c0ff074b0 -") <<<"$src"; \
set - install -g orbit-online/upkg@v0.12.0; eval "$src"'
```

Expand Down Expand Up @@ -145,7 +145,7 @@ any package you like. For example:

```
bash -ec 'src=$(wget -qO- https://raw.githubusercontent.com/orbit-online/upkg/v0.12.0/upkg.sh); \
shasum -qa 256 -c <(printf "866d456f0dcfdb71d2aeab13f6202940083aacb06d471782cec3561c0ff074b0 -") <<<"$src"; \
shasum -a 256 -c <(printf "866d456f0dcfdb71d2aeab13f6202940083aacb06d471782cec3561c0ff074b0 -") <<<"$src"; \
set - install -g orbit-online/bitwarden-container@v2023.7.0-4; eval "$src"'
```

Expand Down

0 comments on commit 1ee06de

Please sign in to comment.