diff --git a/clean-all.sh b/clean-all.sh index 1b86d26adeae01510d10585fd1e2c5d5a30358e3..66c45d56d450987c66eb999afa19eefced22ce38 100755 --- a/clean-all.sh +++ b/clean-all.sh @@ -72,10 +72,15 @@ fi cd $PEASOUP_UMBRELLA_DIR -# clean up installation -$PEDI_HOME/pedi -c -m manifest.txt -if [ -d "$PS_INSTALL" ]; then - echo "removing $PS_INSTALL" - rm -fr "$PS_INSTALL" +# clean up installation if this module is the root of the install. +# skip pedi cleanup if we are part of a larger project, as future builds +# won't know how to install properly. +if [[ $(head -1 manifest.txt.config) == $(pwd) ]] ; then + + $PEDI_HOME/pedi -c -m manifest.txt + if [ -d "$PS_INSTALL" ]; then + echo "removing $PS_INSTALL" + rm -fr "$PS_INSTALL" + fi fi