diff --git a/bin/download b/bin/download index 46e7059..fbe2a20 100755 --- a/bin/download +++ b/bin/download @@ -21,8 +21,11 @@ check_shasum() { shasum \ -a 256 \ -c <(echo "$authentic_checksum $archive_file_name") + elif command -v sha256 >/dev/null 2>&1; then + sha256 \ + -c <(echo "SHA256 ($archive_file_name) = $authentic_checksum") else - fail "sha256sum or shasum is not available for use" + fail "no shasum tool available, supported: sha256sum, shasum or sha256" fi } diff --git a/lib/helpers.sh b/lib/helpers.sh index 64e37bf..8394513 100644 --- a/lib/helpers.sh +++ b/lib/helpers.sh @@ -9,7 +9,7 @@ get_platform() { platform="$(uname | tr '[:upper:]' '[:lower:]')" case "$platform" in - linux | darwin | freebsd) + linux | darwin | freebsd | netbsd) [ -z "$silent" ] && msg "Platform '${platform}' supported!" ;; *)