fix correction for nvm according to PR comments

This commit is contained in:
MunifTanjim
2016-10-10 13:33:07 +06:00
parent 4180f80dce
commit 66e8da02a5

View File

@@ -2,9 +2,7 @@
# nvm (Node Version Manager) completion
if [ -r $NVM_DIR/bash_completion ]
if [ "$NVM_DIR" ] && [ -r "$NVM_DIR"/bash_completion ];
then
. $NVM_DIR/bash_completion
else
echo "Enable nvm plugin first"
. "$NVM_DIR"/bash_completion
fi