From a94ade8ec2ae0b2422063208d172b3d903a66fb5 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Fri, 6 May 2016 01:00:56 -0700 Subject: [PATCH] =?UTF-8?q?[Fix]=20don=E2=80=99t=20use=20bash=20`=3D=3D`?= =?UTF-8?q?=20in=20conditionals?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index 41bf416..17b504f 100644 --- a/nvm.sh +++ b/nvm.sh @@ -879,7 +879,7 @@ nvm_ls_remote_index_tab() { nvm_checksum() { local NVM_CHECKSUM - if [ -z "$3" ] || [ "$3" == "sha1" ]; then + if [ -z "$3" ] || [ "$3" = "sha1" ]; then if nvm_has "sha1sum" && ! nvm_is_alias "sha1sum"; then NVM_CHECKSUM="$(command sha1sum "$1" | command awk '{print $1}')" elif nvm_has "sha1" && ! nvm_is_alias "sha1"; then