mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
sh compatibility
This commit is contained in:
@ -30,7 +30,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
. CleanFunctions
|
||||
. ./CleanFunctions
|
||||
|
||||
echo "Cleaning backup files"
|
||||
find . -type f \( -name "*~" -o -name "*.bak" \) -exec rm {} \;
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user