mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 15:53:22 +01:00
Merge pull request #3409 from unixorn/prevent-variable-clobbering
Add quoting to nvm.sh
This commit is contained in:
commit
9b352030b7
@ -1,6 +1,6 @@
|
|||||||
# 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
|
||||||
|
Loading…
Reference in New Issue
Block a user