Do not corrupt $MANPATH when it's not present (#16300)

Fixes #16299
This commit is contained in:
André Pinto 2016-06-15 17:41:14 +02:00 committed by Brian Coca
parent 13d52ae438
commit fa4011c6c3

View file

@ -39,7 +39,7 @@ end
# Set MANPATH # Set MANPATH
if not contains $PREFIX_MANPATH $MANPATH if not contains $PREFIX_MANPATH $MANPATH
if not set -q MANPATH if not set -q MANPATH
set -gx MANPATH $PREFIX_MANPATH set -gx MANPATH $PREFIX_MANPATH:
else else
set -gx MANPATH $PREFIX_MANPATH $MANPATH set -gx MANPATH $PREFIX_MANPATH $MANPATH
end end