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:
Fernando Schauenburg 2021-08-09 13:58:32 +02:00
parent a1614ab1ce
commit 0331f815a3

View file

@ -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":*) ;;