From 813bcaff30212190d40ec6b2e2d7b448d336b51b Mon Sep 17 00:00:00 2001 From: Chris Greenshields Date: Sat, 2 May 2020 10:34:21 +0100 Subject: [PATCH] foamGet: remove message when no $HOME/.OpenFOAM directory exists --- bin/foamGet | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/foamGet b/bin/foamGet index 6b22f2d242..e254278b1e 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-2019 OpenFOAM Foundation +# \\ / A nd | Copyright (C) 2018-2020 OpenFOAM Foundation # \\/ M anipulation | #------------------------------------------------------------------------------ # License @@ -91,7 +91,7 @@ pruneFiles () { _vers="$(find ~/.OpenFOAM/ \ -maxdepth 1 -mindepth 1 \ -type d -name "[[:digit:]]*" \ - -o -name "dev" | \ + -o -name "dev" 2> /dev/null | \ grep -v $WM_PROJECT_VERSION | \ awk -F "/" '{print $NF}')" [ "$_vers" ] && \