Salome HOME
gestion de path multiples dans la configuration projet
[tools/sat.git] / 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