need to unset "set" (seems to be a common function)

This commit is contained in:
Martin Diehl 2016-07-15 21:03:34 +02:00
parent 40414c767c
commit c5dba60654
2 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,7 @@ set() {
export $1$2$3 export $1$2$3
} }
source $DAMASK_ROOT/CONFIG source $DAMASK_ROOT/CONFIG
unset -f set
# if DAMASK_BIN is present and not in $PATH, add it # if DAMASK_BIN is present and not in $PATH, add it
if [[ "x$DAMASK_BIN" != "x" && ! `echo ":$PATH:" | grep $DAMASK_BIN:` ]]; then if [[ "x$DAMASK_BIN" != "x" && ! `echo ":$PATH:" | grep $DAMASK_BIN:` ]]; then

View File

@ -13,6 +13,7 @@ set() {
export $1$2$3 export $1$2$3
} }
source $DAMASK_ROOT/CONFIG source $DAMASK_ROOT/CONFIG
unset -f set
# if DAMASK_BIN is present and not in $PATH, add it # if DAMASK_BIN is present and not in $PATH, add it
MATCH=`echo ":$PATH:" | grep $DAMASK_BIN:` MATCH=`echo ":$PATH:" | grep $DAMASK_BIN:`