From 5e919bc53f5d94545c368bb0f7ab0ca1efca4443 Mon Sep 17 00:00:00 2001 From: Churchfield Date: Tue, 3 Jul 2018 15:02:18 -0400 Subject: [PATCH] Fixing test condition syntax in Allwmake. --- Allwmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Allwmake b/Allwmake index 72771ac96..60d4cb836 100755 --- a/Allwmake +++ b/Allwmake @@ -4,10 +4,10 @@ version=${WM_PROJECT_VERSION:0:1} variant=${WM_PROJECT_VERSION:2:1} -if [ $version -le 2 ] || [ [ $version -eq 2 ] && [ $variant -le 4 ] ] +if [ $version -le 2 ] || ([ $version -eq 2 ] && [ $variant -le 4 ]) then echo "Building with OpenFOAM-"$WM_PROJECT_VERSION -elif [ $version -gt 2 ] || [ [ $version -eq 2 ] && [ $variant -gt 4 ] ] +elif [ $version -gt 2 ] || ([ $version -eq 2 ] && [ $variant -gt 4 ]) then echo "WARNING: Building with a version of OpenFOAM greater than 2.4.x, which is unsupported. This will not compile!!!" fi