Files
blackbox/tools/profile.d-usrblackbox.sh
Christophe Biocca 0a465125cb Allows profile file to work on pathmunge-less systems.
Will check for pathmunge's existence and use it, or fallback to
prepending to the path.
2014-09-12 10:57:53 -04:00

8 lines
197 B
Bash

# Prepend to $PATH.
if type pathmunge > /dev/null 2>&1 ; then
pathmunge /usr/blackbox/bin
elif ! echo $PATH | grep -Eq "(^|:)/usr/blackbox/bin($|:)" ; then
PATH=/usr/blackbox/bin:$PATH
fi