From 27a474bed7960a4e1f4985bdc65ea9dd0b0a9362 Mon Sep 17 00:00:00 2001 From: henry Date: Tue, 8 Jul 2008 19:13:07 +0100 Subject: [PATCH] Use rm -rf to avoid warnings for files that have already been removed. --- .../compressibleLesInterFoam/depthCharge3D/Allclean | 2 +- tutorials/gnemdFoam/Allclean | 11 ++++------- tutorials/mdEquilibrationFoam/Allclean | 8 +++----- tutorials/rhoCentralFoam/Allclean | 2 +- 4 files changed, 9 insertions(+), 14 deletions(-) diff --git a/tutorials/compressibleLesInterFoam/depthCharge3D/Allclean b/tutorials/compressibleLesInterFoam/depthCharge3D/Allclean index 7a7b7f16fe..c422ce058e 100755 --- a/tutorials/compressibleLesInterFoam/depthCharge3D/Allclean +++ b/tutorials/compressibleLesInterFoam/depthCharge3D/Allclean @@ -2,4 +2,4 @@ foamCleanTutorials cases rm -rf processor* -rm 0/pd.gz 0/alpha1.gz +rm -rf 0/pd.gz 0/alpha1.gz diff --git a/tutorials/gnemdFoam/Allclean b/tutorials/gnemdFoam/Allclean index 827eacb6ae..11f901ce8e 100755 --- a/tutorials/gnemdFoam/Allclean +++ b/tutorials/gnemdFoam/Allclean @@ -4,16 +4,13 @@ . $WM_PROJECT_DIR/bin/tools/CleanFunctions cd constrictedChannel - rm -rf 0 > /dev/null 2>&1 - rm Ar-Ar Ar-Ne Ne-Ne > /dev/null 2>&1 - rm constant/idList - + rm -rf 0 + rm -rf Ar-Ar Ar-Ne Ne-Ne + rm -rf constant/idList cleanCase cd .. cd nanoNozzle - rm -rf processor[0-9] > /dev/null 2>&1 - + rm -rf processor[0-9] cleanCase cd .. - diff --git a/tutorials/mdEquilibrationFoam/Allclean b/tutorials/mdEquilibrationFoam/Allclean index 7880b1387e..00dd874d76 100755 --- a/tutorials/mdEquilibrationFoam/Allclean +++ b/tutorials/mdEquilibrationFoam/Allclean @@ -4,10 +4,8 @@ . $WM_PROJECT_DIR/bin/tools/CleanFunctions cd periodicCube - rm -rf 0 > /dev/null 2>&1 - rm Ar-Ar > /dev/null 2>&1 - rm constant/idList - + rm -rf 0 + rm -rf Ar-Ar + rm -rf constant/idList cleanCase cd .. - diff --git a/tutorials/rhoCentralFoam/Allclean b/tutorials/rhoCentralFoam/Allclean index cbb826cb1d..c783ce6388 100755 --- a/tutorials/rhoCentralFoam/Allclean +++ b/tutorials/rhoCentralFoam/Allclean @@ -24,7 +24,7 @@ do if [ "$case" = "biconic25-55Run35" ] then - rm $case/constant/polyMesh/boundary + rm -rf $case/constant/polyMesh/boundary wclean $case/datToFoam fi done