avoid using stdin and use fd (#87)

Closes #90
This commit is contained in:
Windymelt 2023-05-09 23:34:48 +09:00 committed by GitHub
parent f006a12d6e
commit be7daa8c57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,11 +16,11 @@ check_shasum() {
if command -v sha256sum >/dev/null 2>&1; then
sha256sum \
-c <<<"$authentic_checksum $archive_file_name"
-c <(echo "$authentic_checksum $archive_file_name")
elif command -v shasum >/dev/null 2>&1; then
shasum \
-a 256 \
-c <<<"$authentic_checksum $archive_file_name"
-c <(echo "$authentic_checksum $archive_file_name")
else
fail "sha256sum or shasum is not available for use"
fi