path: add comments for clarity
This commit is contained in:
parent
6e11b63150
commit
27035f0a29
1 changed files with 4 additions and 4 deletions
|
@ -14,8 +14,8 @@
|
||||||
# Add custom bin dirs to PATH if they exist and are not already in PATH.
|
# Add custom bin dirs to PATH if they exist and are not already in PATH.
|
||||||
while read -r dir; do
|
while read -r dir; do
|
||||||
case ":${PATH:=$dir}:" in
|
case ":${PATH:=$dir}:" in
|
||||||
*:"$dir":*) ;;
|
*:"$dir":*) ;; # already in PATH -> ignore
|
||||||
*) PATH="$dir:$PATH" ;;
|
*) PATH="$dir:$PATH" ;; # not yet in PATH -> prepend it
|
||||||
esac
|
esac
|
||||||
done <<EOL
|
done <<EOL
|
||||||
$LOCAL_PREFIX/bin
|
$LOCAL_PREFIX/bin
|
||||||
|
@ -33,8 +33,8 @@ export PATH
|
||||||
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":*) ;; # already in MANPATH -> ignore
|
||||||
*) MANPATH="$dir:$MANPATH" ;;
|
*) MANPATH="$dir:$MANPATH" ;; # not yet in MANPATH -> prepend it
|
||||||
esac
|
esac
|
||||||
done <<EOL
|
done <<EOL
|
||||||
$LOCAL_PREFIX/share/man
|
$LOCAL_PREFIX/share/man
|
||||||
|
|
Loading…
Add table
Reference in a new issue