mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: avoid possibly non-portable 'find' with '-printf'
This commit is contained in:
@ -113,13 +113,12 @@ then
|
|||||||
exit $?
|
exit $?
|
||||||
elif [ ! -d $MakeDir ]
|
elif [ ! -d $MakeDir ]
|
||||||
then
|
then
|
||||||
for dir in `find . \( -type d -a -name Make \) -printf "%h "`
|
for dir in `find . \( -type d -a -name Make \)`
|
||||||
do
|
do
|
||||||
$0 $dir
|
$0 ${dir%/Make} # parent directory - trim /Make from the end
|
||||||
done
|
done
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# makeOption is not needed beyond this point
|
# makeOption is not needed beyond this point
|
||||||
|
|||||||
Reference in New Issue
Block a user