diff --git a/tutorials/Allclean b/tutorials/Allclean index b8cf626ef3e55bc8a6be2783dcca34dac6287d92..aefce0c6f099132e81d93bcc63052e7844cc73e7 100755 --- a/tutorials/Allclean +++ b/tutorials/Allclean @@ -30,7 +30,7 @@ # #------------------------------------------------------------------------------ -. CleanFunctions +. ./CleanFunctions echo "Cleaning backup files" find . -type f \( -name "*~" -o -name "*.bak" \) -exec rm {} \; diff --git a/tutorials/CleanFunctions b/tutorials/CleanFunctions index dee6ac75fe6aca7cb80ffb69281751a9f6d4d9af..a5e9b7ebed4174d292d7bfc293d72b5ea236b8e5 100644 --- a/tutorials/CleanFunctions +++ b/tutorials/CleanFunctions @@ -54,7 +54,7 @@ cleanTimeDirectories () rm -rf $1/${timeDir} > /dev/null 2>&1 rm -rf $1/-${timeDir} > /dev/null 2>&1 zeros=`printf %0${nZeros}d 0` - let nZeros=nZeros+1 + nZeros=$(($nZeros + 1)) done rm -rf $1/{[1-9]*,-[1-9]*,log,log.*,log-*,logSummary.*,.fxLock,*.xml,ParaView*,paraFoam*,*.foam} > /dev/null 2>&1 } diff --git a/tutorials/sonicFoam/Allclean b/tutorials/sonicFoam/Allclean index c79a02160cd1cad44b8231c7d606b7668080c96e..598ab19eb5cb07bde88a7084ff27196f7ca94ab0 100755 --- a/tutorials/sonicFoam/Allclean +++ b/tutorials/sonicFoam/Allclean @@ -3,7 +3,6 @@ currDir=`pwd` application=`basename $currDir` cases="forwardStep shockTube" -utility=setShock tutorialPath=`dirname $0`/.. . $tutorialPath/CleanFunctions @@ -15,7 +14,6 @@ do then rm -rf $case/0 cp -r $case/0.org $case/0 - wclean $case/$utility cleanSamples $case fi done