We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b700ffb commit eb53f4eCopy full SHA for eb53f4e
docs/static/install.sh
@@ -56,10 +56,11 @@ is_command() {
56
# example: check_sha256 "${TMP_DIR}" checksums.txt
57
validate_checksums_file() {
58
cd "$1"
59
+ grep "$FILENAME" "$2" > checksum.txt
60
if is_command sha256sum; then
- sha256sum --ignore-missing --quiet --check "$2"
61
+ sha256sum -c checksum.txt
62
elif is_command shasum; then
- shasum -a 256 --ignore-missing --quiet --check checksums.txt
63
+ shasum -a 256 -q -c checksum.txt
64
else
65
fancy_print 1 "We were not able to verify checksums. Commands sha256sum, shasum are not found."
66
return 1
0 commit comments