Commit 9b352030 authored by Robby Russell's avatar Robby Russell
Browse files

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

Add quoting to nvm.sh
parents 9e794a5d 16d07683
# get the node.js version # get the node.js version
function nvm_prompt_info() { function nvm_prompt_info() {
[ -f $HOME/.nvm/nvm.sh ] || return [ -f "$HOME/.nvm/nvm.sh" ] || return
local nvm_prompt local nvm_prompt
nvm_prompt=$(node -v 2>/dev/null) nvm_prompt=$(node -v 2>/dev/null)
[[ "${nvm_prompt}x" == "x" ]] && return [[ "${nvm_prompt}x" == "x" ]] && return
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment