Commit cca7e5df authored by POLCHER Jan's avatar POLCHER Jan 🚴🏾
Browse files

Some bug corrections.

parent 25ee3399
......@@ -16,18 +16,21 @@
function hasanaconda (){
ipsl="ipsl camelot climserv ciclad"
idris="idris jean-zay"
h=$(hostname -d)
if [[ "$h" == *"ipsl"* ]] ; then
echo "IPSL"
eval "$1='ipsl'"
elif [[ "$h" == *"idris"* ]] ; then
case $(hostname -d) in
climserv*|private.ipsl.fr|ipsl.polytechnique.fr)
echo "IPSL"
eval "$1='ipsl'"
;;
idris*|jean-zay*)
echo "IDRIS"
eval "$1='idris'"
else
echo "unknown : $h"
;;
*)
echo "unknown machine : $(hostname -d)"
eval "$1='unknown'"
fi
esac
}
function checkenv (){
rm -f checkenv.py
cat <<EOF > checkenv.py
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment