[Fix] don’t use bash `==` in conditionals

Jordan Harband 2016-05-06 01:00:56 -07:00
parent eb329ae7a9
commit a94ade8ec2
No known key found for this signature in database
GPG Key ID: 64A196AEE0916D55
1 changed files with 1 additions and 1 deletions

2
nvm.sh
View File

@ -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