Skip to content

Commit

Permalink
Fixing test condition syntax in Allwmake.
Browse files Browse the repository at this point in the history
  • Loading branch information
mchurchf committed Jul 3, 2018
1 parent 8173088 commit 5e919bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Allwmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5e919bc

Please sign in to comment.