From: Nabil Ghodbane Date: Wed, 13 Dec 2023 20:20:28 +0000 (+0100) Subject: spns #40183: if user login shell is not Bash, exit on error, instead of simply sendin... X-Git-Url: http://git.salome-platform.org/gitweb/?p=tools%2Fsat.git;a=commitdiff_plain;h=e35dd38a7c6a2c84b9ca9614e41c2b89e4e7b001;hp=c576ce472ca8d47b4db4960ef48bc97cccdd9d03 spns #40183: if user login shell is not Bash, exit on error, instead of simply sending a warning. --- 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 ########################################################################## #