wmakePrintBuild -check: exit 0 if not a git repository

This commit is contained in:
Henry Weller
2016-07-05 21:50:34 +01:00
parent 8a93e13df3
commit 898b51c8a3

View File

@ -3,7 +3,7 @@
# ========= | # ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration | # \\ / O peration |
# \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation # \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
# \\/ M anipulation | # \\/ M anipulation |
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
# License # License
@ -205,10 +205,11 @@ then
else else
echo "version changed from previous build" 1>&2 echo "version changed from previous build" 1>&2
fi fi
exit $rc
else else
echo "no git description found" 1>&2 echo "no git description found" 1>&2
exit 0
fi fi
exit $rc
fi fi