mirror of
https://github.com/kennyp/asdf-golang.git
synced 2024-10-06 04:32:07 +08:00
parent
f006a12d6e
commit
be7daa8c57
@ -16,11 +16,11 @@ check_shasum() {
|
|||||||
|
|
||||||
if command -v sha256sum >/dev/null 2>&1; then
|
if command -v sha256sum >/dev/null 2>&1; then
|
||||||
sha256sum \
|
sha256sum \
|
||||||
-c <<<"$authentic_checksum $archive_file_name"
|
-c <(echo "$authentic_checksum $archive_file_name")
|
||||||
elif command -v shasum >/dev/null 2>&1; then
|
elif command -v shasum >/dev/null 2>&1; then
|
||||||
shasum \
|
shasum \
|
||||||
-a 256 \
|
-a 256 \
|
||||||
-c <<<"$authentic_checksum $archive_file_name"
|
-c <(echo "$authentic_checksum $archive_file_name")
|
||||||
else
|
else
|
||||||
fail "sha256sum or shasum is not available for use"
|
fail "sha256sum or shasum is not available for use"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user