Bypass sha1sum/sha1 aliases. Fixes #640.
This commit is contained in:
1 parent
a6819b3018
commit
0792945824
1 file changed
+2
-2
@@ -604,9 +604,9 @@ nvm_ls_remote_iojs() {
|
|||||||
|
|
||||||
nvm_checksum() {
|
nvm_checksum() {
|
||||||
if nvm_has "sha1sum"; then
|
if nvm_has "sha1sum"; then
|
||||||
checksum="$(sha1sum "$1" | command awk '{print $1}')"
|
checksum="$(command sha1sum "$1" | command awk '{print $1}')"
|
||||||
elif nvm_has "sha1"; then
|
elif nvm_has "sha1"; then
|
||||||
checksum="$(sha1 -q "$1")"
|
checksum="$(command sha1 -q "$1")"
|
||||||
else
|
else
|
||||||
checksum="$(shasum "$1" | command awk '{print $1}')"
|
checksum="$(shasum "$1" | command awk '{print $1}')"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in new issue
Block a user