From 97910c2c0c192ab4329f1c0d5d839b2897147eb9 Mon Sep 17 00:00:00 2001
From: andy <a.heather@opencfd.co.uk>
Date: Wed, 17 Mar 2010 17:56:23 +0000
Subject: [PATCH] ENH: only set ParaView_MAJOR by default if not already set

---
 etc/apps/paraview3/bashrc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/etc/apps/paraview3/bashrc b/etc/apps/paraview3/bashrc
index 2062c389e0b..0aff5a33523 100644
--- a/etc/apps/paraview3/bashrc
+++ b/etc/apps/paraview3/bashrc
@@ -62,7 +62,7 @@ case "$ParaView_VERSION" in
     ;;
 
 *)
-    ParaView_MAJOR=`echo $ParaView_VERSION | sed -e 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
+    [ -z ${ParaView_MAJOR} ] && ParaView_MAJOR=`echo $ParaView_VERSION | sed -e 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
     ;;
 esac
 export ParaView_MAJOR
-- 
GitLab