Skip to content

Commit

Permalink
fix failing if check in autoload script
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddharth Sakhadeo committed May 25, 2018
1 parent 57ec311 commit b81c120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ load-nvmrc() {

if [ "$nvmrc_node_version" = "N/A" ]; then
nvm install
elif [ "$nvmrc_node_version" != "$node_version" ]; then
elif [ "$nvmrc_node_version" = "$node_version" ]; then
nvm use
fi
elif [ "$node_version" != "$(nvm version default)" ]; then
Expand Down

1 comment on commit b81c120

@bjrbhre
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sidsakhadeo I don't really understand this commit. I feel like without the ! it just does the opposite of what is expected.

Please sign in to comment.