Fix checksum install function

This commit is contained in:
Daniel Paul Searles 2020-12-15 21:33:30 -07:00
parent adf87c3adb
commit ccd3432fd9
No known key found for this signature in database
GPG Key ID: E6357117142B706B

View File

@ -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