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:
@@ -1,2 +1,7 @@
|
||||
# Prepend to $PATH.
|
||||
pathmunge /usr/blackbox/bin
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user