mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
STYLE: adjust ordering of 'find' command arguments
- use -name test before -type test to avoid calling stat(2) on every file. - use -delete instead of -exec rm to avoid forking
This commit is contained in:
@ -32,7 +32,7 @@
|
||||
|
||||
if [ "$#" -gt 0 ]
|
||||
then
|
||||
find . -name "*.[CHL]" -exec $1 {} \; -print
|
||||
find . -name "*.[CHL]" -type f -exec $1 {} \; -print
|
||||
fi
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user