foamSearch: Updated call to foamDictionary for absolute paths

This commit is contained in:
Henry Weller
2024-04-18 15:24:24 +01:00
parent 3ce8a35029
commit 57cb8b2c59

View File

@ -3,7 +3,7 @@
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration | Website: https://openfoam.org
# \\ / A nd | Copyright (C) 2016-2021 OpenFOAM Foundation
# \\ / A nd | Copyright (C) 2016-2024 OpenFOAM Foundation
# \\/ M anipulation |
#------------------------------------------------------------------------------
# License
@ -81,7 +81,7 @@ files=$(find "$1" -name "$2")
for f in $files
do
foamDictionary -entry "$3" "$f" 2>/dev/null
foamDictionary -case / -entry "$3" "$f" 2>/dev/null
done | \
sort | uniq $count | sed '/^[\t 1-9]*$/d' || \
echo "No keyword $3 found in $2 files"