Skip to content

Commit eb53f4e

Browse files
authored
fix(install.sh): Make install.sh work on Alpine, fixes #587 (#871)
Signed-off-by: Daniel Liszka <[email protected]>
1 parent b700ffb commit eb53f4e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/static/install.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,11 @@ is_command() {
5656
# example: check_sha256 "${TMP_DIR}" checksums.txt
5757
validate_checksums_file() {
5858
cd "$1"
59+
grep "$FILENAME" "$2" > checksum.txt
5960
if is_command sha256sum; then
60-
sha256sum --ignore-missing --quiet --check "$2"
61+
sha256sum -c checksum.txt
6162
elif is_command shasum; then
62-
shasum -a 256 --ignore-missing --quiet --check checksums.txt
63+
shasum -a 256 -q -c checksum.txt
6364
else
6465
fancy_print 1 "We were not able to verify checksums. Commands sha256sum, shasum are not found."
6566
return 1

0 commit comments

Comments
 (0)