profile: fix check for manpath (1)
The [ got introduced in the refactoring and caused the setting of MANPATH to never happen.
This commit is contained in:
parent
a1614ab1ce
commit
0331f815a3
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ export PATH
|
||||||
# Prepend custom man directories to MANPATH if they exist, so that we get
|
# Prepend custom man directories to MANPATH if they exist, so that we get
|
||||||
# correct man page entries when multiple versions of a command are
|
# correct man page entries when multiple versions of a command are
|
||||||
# available.
|
# available.
|
||||||
[ command -v manpath >/dev/null 2>&1 ] && MANPATH="$(unset MANPATH; manpath)"
|
command -v manpath >/dev/null 2>&1 && MANPATH="$(unset MANPATH; manpath)"
|
||||||
while read -r dir; do
|
while read -r dir; do
|
||||||
case ":${MANPATH:=$dir}:" in
|
case ":${MANPATH:=$dir}:" in
|
||||||
*:"$dir":*) ;;
|
*:"$dir":*) ;;
|
||||||
|
|
Loading…
Add table
Reference in a new issue