From 57cb8b2c59bf4ec707be3a86c3f1cf336ce56725 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Thu, 18 Apr 2024 15:24:24 +0100 Subject: [PATCH] foamSearch: Updated call to foamDictionary for absolute paths --- bin/foamSearch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/foamSearch b/bin/foamSearch index cd186e6962..e51bed2aa2 100755 --- a/bin/foamSearch +++ b/bin/foamSearch @@ -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"