foamGet: remove message when no $HOME/.OpenFOAM directory exists

This commit is contained in:
Chris Greenshields
2020-05-02 10:34:21 +01:00
parent 855cf2941a
commit 813bcaff30

View File

@ -3,7 +3,7 @@
# ========= | # ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration | Website: https://openfoam.org # \\ / O peration | Website: https://openfoam.org
# \\ / A nd | Copyright (C) 2018-2019 OpenFOAM Foundation # \\ / A nd | Copyright (C) 2018-2020 OpenFOAM Foundation
# \\/ M anipulation | # \\/ M anipulation |
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# License # License
@ -91,7 +91,7 @@ pruneFiles () {
_vers="$(find ~/.OpenFOAM/ \ _vers="$(find ~/.OpenFOAM/ \
-maxdepth 1 -mindepth 1 \ -maxdepth 1 -mindepth 1 \
-type d -name "[[:digit:]]*" \ -type d -name "[[:digit:]]*" \
-o -name "dev" | \ -o -name "dev" 2> /dev/null | \
grep -v $WM_PROJECT_VERSION | \ grep -v $WM_PROJECT_VERSION | \
awk -F "/" '{print $NF}')" awk -F "/" '{print $NF}')"
[ "$_vers" ] && \ [ "$_vers" ] && \