Merge pull request #3409 from unixorn/prevent-variable-clobbering

Add quoting to nvm.sh
This commit is contained in:
Robby Russell 2014-12-19 20:21:33 -08:00
commit 9b352030b7

View File

@ -1,6 +1,6 @@
# get the node.js version
function nvm_prompt_info() {
[ -f $HOME/.nvm/nvm.sh ] || return
[ -f "$HOME/.nvm/nvm.sh" ] || return
local nvm_prompt
nvm_prompt=$(node -v 2>/dev/null)
[[ "${nvm_prompt}x" == "x" ]] && return