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.
This commit is contained in:
Christophe Biocca
2014-09-12 10:28:47 -04:00
parent 2689a2d5a4
commit 0a465125cb

View File

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