[Fix] ensure this variable is not unbound.
Fixes #1413.
parent
286090b607
commit
fa22d712ff
1
nvm.sh
1
nvm.sh
|
@ -2675,6 +2675,7 @@ nvm() {
|
||||||
# Prepend current version
|
# Prepend current version
|
||||||
PATH="$(nvm_prepend_path "$PATH" "$NVM_VERSION_DIR/bin")"
|
PATH="$(nvm_prepend_path "$PATH" "$NVM_VERSION_DIR/bin")"
|
||||||
if nvm_has manpath; then
|
if nvm_has manpath; then
|
||||||
|
local MANPATH
|
||||||
if [ -z "$MANPATH" ]; then
|
if [ -z "$MANPATH" ]; then
|
||||||
MANPATH=$(manpath)
|
MANPATH=$(manpath)
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue