mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 14:21:50 +00:00
[Fix] don’t use bash ==
in conditionals
This commit is contained in:
parent
eb329ae7a9
commit
a94ade8ec2
2
nvm.sh
2
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
|
||||
|
Loading…
Reference in New Issue
Block a user