Salome HOME
projects
/
tools
/
sat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c146ba1
)
sat #24027 : affichage d'un message d'avertissement pour les utilisateurs utilisant...
author
crouzet
<nicolas.crouzet@cea.fr>
Tue, 9 Mar 2021 15:12:31 +0000
(16:12 +0100)
committer
crouzet
<nicolas.crouzet@cea.fr>
Tue, 9 Mar 2021 15:12:31 +0000
(16:12 +0100)
src/fileEnviron.py
patch
|
blob
|
history
diff --git
a/src/fileEnviron.py
b/src/fileEnviron.py
index 6904893291b8593c489ad9d318927d1479592468..3fe41c87945290dc5524abfb57bf98f015cc91e8 100644
(file)
--- a/
src/fileEnviron.py
+++ b/
src/fileEnviron.py
@@
-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