From 079294582452c7514e14635705c080295d7d3f81 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Fri, 30 Jan 2015 23:46:33 -0800 Subject: [PATCH] Bypass sha1sum/sha1 aliases. Fixes #640. --- nvm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvm.sh b/nvm.sh index 7b1fe69..2966017 100644 --- a/nvm.sh +++ b/nvm.sh @@ -604,9 +604,9 @@ nvm_ls_remote_iojs() { nvm_checksum() { 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 - checksum="$(sha1 -q "$1")" + checksum="$(command sha1 -q "$1")" else checksum="$(shasum "$1" | command awk '{print $1}')" fi