From ab8a8281d5a24056ba8093d09e1a4e2a69b08eef Mon Sep 17 00:00:00 2001
From: Philippe WAUTELET <philippe.wautelet@aero.obs-mip.fr>
Date: Wed, 13 Dec 2023 09:05:41 +0100
Subject: [PATCH] Philippe 13/12/2023: profile_mesonh.ihm: manage correctly
 VER_OASIS if empty

---
 conf/profile_mesonh.ihm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/conf/profile_mesonh.ihm b/conf/profile_mesonh.ihm
index 449577cfe..54f2d6f79 100755
--- a/conf/profile_mesonh.ihm
+++ b/conf/profile_mesonh.ihm
@@ -186,8 +186,10 @@ echo 'WARNING : You chose VER_CDF=CDFPERSO, please set NETCDF_CONFIG environment
 fi
 fi
 #
+if [ -n "${VER_OASIS}" ] ; then
 if [ \${VER_OASIS} = 'OASISPERSO' ] ; then
 if [ -z \$OASISDIR ] ; then
 echo 'WARNING : You chose VER_OASIS=OASISPERSO, please set OASISDIR environment variable'
 fi
-fi 
+fi
+fi
-- 
GitLab