mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: remove unnecessary stdout, stderr /dev/null redirects
- no stderr redirect needed:
* 'command -v'
- no stdout/stderr redirect needed:
* 'rm -f'
STYLE: consistent spacing after redirects
This commit is contained in:
committed by
Andrew Heather
parent
ec7e3c88e4
commit
e6dfb39c66
@ -62,7 +62,7 @@ copyParallelPointDisplacement()
|
||||
if [ -d "$proc/$latestTime" -a ! -d "$proc/$deltaT" ]
|
||||
then
|
||||
mv $proc/$latestTime $proc/$deltaT
|
||||
\rm -rf $proc/$deltaT/uniform
|
||||
rm -rf "$proc/$deltaT/uniform"
|
||||
fi
|
||||
done
|
||||
)
|
||||
|
||||
@ -4,7 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# Cleanup old junk that may prevent things from starting
|
||||
\rm -f comms/OpenFOAM.lock
|
||||
rm -f comms/OpenFOAM.lock
|
||||
|
||||
# If OpenFOAM stops prematurely, trigger the external solver to stop
|
||||
trap '[ -e comms/OpenFOAM.lock ] && echo "status=done" > comms/OpenFOAM.lock' EXIT TERM INT
|
||||
|
||||
@ -10,7 +10,7 @@ cp $FOAM_TUTORIALS/resources/geometry/building_wtc2.obj constant/triSurface/
|
||||
# runApplication surfaceFeatureExtract
|
||||
runApplication blockMesh
|
||||
|
||||
\rm -f constant/polyMesh/*Level
|
||||
rm -f constant/polyMesh/*Level
|
||||
|
||||
unset parallel
|
||||
parallel=true
|
||||
@ -23,7 +23,7 @@ then
|
||||
# Serial
|
||||
|
||||
runApplication snappyHexMesh -overwrite
|
||||
\rm -f constant/polyMesh/refinementHistory*
|
||||
rm -f constant/polyMesh/refinementHistory*
|
||||
|
||||
restore0Dir
|
||||
|
||||
|
||||
Reference in New Issue
Block a user