Merge branch 'master' of github.com-OpenFOAM:OpenFOAM/OpenFOAM-dev

This commit is contained in:
Henry Weller
2022-03-15 14:51:55 +00:00

View File

@ -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 <file> 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")"