From 898b51c8a39519da856e50a58bb4f8a86b81c626 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Tue, 5 Jul 2016 21:50:34 +0100 Subject: [PATCH] wmakePrintBuild -check: exit 0 if not a git repository --- wmake/wmakePrintBuild | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wmake/wmakePrintBuild b/wmake/wmakePrintBuild index c23e63d33e..39a8f3be0a 100755 --- a/wmake/wmakePrintBuild +++ b/wmake/wmakePrintBuild @@ -3,7 +3,7 @@ # ========= | # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / O peration | -# \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation +# \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation # \\/ M anipulation | #------------------------------------------------------------------------------- # License @@ -205,10 +205,11 @@ then else echo "version changed from previous build" 1>&2 fi + exit $rc else echo "no git description found" 1>&2 + exit 0 fi - exit $rc fi