Salome HOME
sat #24027 : affichage d'un message d'avertissement pour les utilisateurs utilisant...
authorcrouzet <nicolas.crouzet@cea.fr>
Tue, 9 Mar 2021 15:12:31 +0000 (16:12 +0100)
committercrouzet <nicolas.crouzet@cea.fr>
Tue, 9 Mar 2021 15:12:31 +0000 (16:12 +0100)
src/fileEnviron.py

index 6904893291b8593c489ad9d318927d1479592468..3fe41c87945290dc5524abfb57bf98f015cc91e8 100644 (file)
@@ -729,6 +729,15 @@ tcl_header="""\
 
 bash_header="""\
 #!/bin/bash
+if [ "$BASH" = "" ]
+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 "As you are using another shell. Please first run: bash"
+  echo
+fi
 ##########################################################################
 #
 # This line is used only in case of a sat package