foamGet: remove caseDicts/postProcessing from search path

This commit is contained in:
Chris Greenshields
2024-03-07 11:44:49 +00:00
parent 92da31039e
commit de422504ba

View File

@ -65,7 +65,15 @@ findFilesInDirs () {
_out=""
for _d in $_dirs
do
[ -d "$_d" ] && _out="$(find -L "$_d" -name "$_str" -type f | sort) $_out"
# Follow links; use not clear, but perhaps for local/site configuration
_link_opt="-L"
# Do not follow links in $FOAM_ETC/caseDicts to avoid duplication from
# the postProcessing -> functions link
[ "$_d" = "$FOAM_ETC/caseDicts" ] && _link_opt="-P"
[ -d "$_d" ] && \
_out="$(find $_link_opt "$_d" -name "$_str" -type f | sort) $_out"
done
# Remove whitespace and blank lines