From b5b842c688df75e3f3a19ec4a562324f65af0efb Mon Sep 17 00:00:00 2001 From: Chris Greenshields Date: Tue, 15 Mar 2022 08:21:58 +0000 Subject: [PATCH] foamGet: include controlDict.orig file in case check --- bin/foamGet | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/foamGet b/bin/foamGet index 0b50729413..3d4c0efa76 100755 --- a/bin/foamGet +++ b/bin/foamGet @@ -3,7 +3,7 @@ # ========= | # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / O peration | Website: https://openfoam.org -# \\ / A nd | Copyright (C) 2018-2021 OpenFOAM Foundation +# \\ / A nd | Copyright (C) 2018-2022 OpenFOAM Foundation # \\/ M anipulation | #------------------------------------------------------------------------------ # License @@ -234,8 +234,9 @@ done [ $# -eq 1 ] || error "missing argument: no file name/prefix supplied" prefix="$1" -[ -s "system/controlDict" ] || \ - echo "Warning: cannot find OpenFOAM case directory (no system/controlDict file)" +{ [ -s "system/controlDict" ] || [ -s "system/controlDict.orig" ] ; } || \ + echo "Warning: cannot find a system/controlDict file" \ + "- is this a case directory?" files="$(findFiles "$searchDirs" "$prefix" "$ext")"