diff --git a/nvm.sh b/nvm.sh index 500e472..71cbd9b 100644 --- a/nvm.sh +++ b/nvm.sh @@ -278,12 +278,12 @@ nvm_ls_remote() { } nvm_checksum() { - if nvm_has "shasum"; then - checksum=$(shasum $1 | \awk '{print $1}') + if nvm_has "sha1sum"; then + checksum=$(sha1sum $1 | \awk '{print $1}') elif nvm_has "sha1"; then checksum=$(sha1 -q $1) else - checksum=$(sha1sum $1 | \awk '{print $1}') + checksum=$(shasum $1 | \awk '{print $1}') fi if [ "$checksum" = "$2" ]; then