foamSearch: Updated call to foamDictionary for absolute paths
This commit is contained in:
@ -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"
|
||||
|
||||
Reference in New Issue
Block a user