From e35dd38a7c6a2c84b9ca9614e41c2b89e4e7b001 Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Wed, 13 Dec 2023 21:20:28 +0100 Subject: [PATCH] spns #40183: if user login shell is not Bash, exit on error, instead of simply sending a warning. --- src/fileEnviron.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fileEnviron.py b/src/fileEnviron.py index dc8dc80..9e98b3f 100644 --- a/src/fileEnviron.py +++ b/src/fileEnviron.py @@ -744,9 +744,10 @@ then # check that the user is not using another shell echo echo "Warning! SALOME environment not initialized" - echo "You must run this script in a bash shell." + echo "You must run this script in a BASH shell." echo "As you are using another shell. Please first run: bash" echo + exit 1 fi ########################################################################## # -- 2.39.2