[Fix] ensure this variable is not unbound.

Fixes #1413.
Jordan Harband 2017-03-06 09:35:58 -08:00
parent 286090b607
commit fa22d712ff
No known key found for this signature in database
GPG Key ID: 64A196AEE0916D55
1 changed files with 1 additions and 0 deletions

1
nvm.sh
View File

@ -2675,6 +2675,7 @@ nvm() {
# Prepend current version
PATH="$(nvm_prepend_path "$PATH" "$NVM_VERSION_DIR/bin")"
if nvm_has manpath; then
local MANPATH
if [ -z "$MANPATH" ]; then
MANPATH=$(manpath)
fi