mirror of
https://github.com/rfrancis/asdf-gradle.git
synced 2024-10-06 05:32:06 +08:00
Fix checksum install function
This commit is contained in:
parent
adf87c3adb
commit
ccd3432fd9
@ -7,11 +7,11 @@ checkShasum ()
|
||||
|
||||
if $(command -v sha256sum >/dev/null 2>&1); then
|
||||
sha256sum \
|
||||
-c <<<"$authentic_checksum $archive_file_name"
|
||||
-c <<<"$authentic_checksum $archive_file_name"
|
||||
elif $(command -v shasum >/dev/null 2>&1); then
|
||||
shasum \
|
||||
-a 256 \
|
||||
-c <<<"$authentic_checksum $archive_file_name"
|
||||
-c <<<"$authentic_checksum $archive_file_name"
|
||||
else
|
||||
echo "sha256sum or shasum is not available for use" >&2
|
||||
return 1
|
||||
|
Loading…
Reference in New Issue
Block a user