Skip to content
Snippets Groups Projects
Commit 56f75de6 authored by Mark Olesen's avatar Mark Olesen
Browse files

BUG: WM_PROJECT_SITE was not cleaned from PATH

parent 9c468ea5
Branches
Tags
No related merge requests found
...@@ -101,7 +101,7 @@ export FOAM_SIGFPE= ...@@ -101,7 +101,7 @@ export FOAM_SIGFPE=
# The old dirs to be cleaned from the various environment variables # The old dirs to be cleaned from the various environment variables
# - remove anything under top-level directory. # - remove anything under top-level directory.
# NB: the WM_PROJECT_INST_DIR might not be identical between versions # NB: the WM_PROJECT_INST_DIR might not be identical between versions
foamOldDirs="$FOAM_INST_DIR $HOME/$WM_PROJECT/$USER" foamOldDirs="$FOAM_INST_DIR $WM_PROJECT_SITE $HOME/$WM_PROJECT/$USER"
if [ "$WM_PROJECT_INST_DIR" != "$FOAM_INST_DIR" ] if [ "$WM_PROJECT_INST_DIR" != "$FOAM_INST_DIR" ]
then then
foamOldDirs="$WM_PROJECT_INST_DIR $foamOldDirs" foamOldDirs="$WM_PROJECT_INST_DIR $foamOldDirs"
......
...@@ -107,6 +107,9 @@ if ( $?WM_PROJECT_INST_DIR ) then ...@@ -107,6 +107,9 @@ if ( $?WM_PROJECT_INST_DIR ) then
set foamOldDirs="$WM_PROJECT_INST_DIR $foamOldDirs" set foamOldDirs="$WM_PROJECT_INST_DIR $foamOldDirs"
endif endif
endif endif
if ( $?WM_PROJECT_SITE ) then
set foamOldDirs="$WM_PROJECT_SITE $foamOldDirs"
endif
# Location of installation # Location of installation
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment