Browse Source

Update 'README.md'

Pierre-Yves Barriat 6 years ago
parent
commit
3caf346818
1 changed files with 5 additions and 6 deletions
  1. 5 6
      README.md

+ 5 - 6
README.md

@@ -18,7 +18,7 @@ ssh-copy-id -i ~/.ssh/id_rsa.pub gwceci.cism.ucl.ac.be
 ## Install
 
 First, clone the `pbarriat/ecearth_patch` repository:
-```
+```bash
 mkdir ~/modeles
 cd ~/modeles
 mkdir ecearth
@@ -33,18 +33,17 @@ configure_ecearth()
 {
   if [ `hostname` != "frontal1" ]; then
     echo "First, we move to frontal1..."
-    touch .configure_ecearth
+    touch ~/.configure_ecearth
     ssh frontal1
   fi
   export EC_DEP=/projects/acad/ecearth/opt
   if [ -f $EC_DEP/modules.load ]; then
     source $EC_DEP/modules.load
   fi
+  [[ -f ~/.configure_ecearth ]] && rm ~/.configure_ecearth
 }
-
 if [ `hostname` = "frontal1" ]; then
-  [[ -f .configure_ecearth ]] && configure_ecearth
-  [[ -f .configure_ecearth ]] && rm .configure_ecearth
+  [[ -f ~/.configure_ecearth ]] && configure_ecearth
 fi
 if [ `hostname` = "frontal3" ]; then
   PATH="/projects/acad/ecearth/opt/apps/lua/lua/bin:$PATH"
@@ -55,7 +54,7 @@ fi
 ```
 
 Then, checkout the EC-Earth SVN repository. Four alternatives:
-```
+```bash
 cd ecearth
 
 svn co https://svn.ec-earth.org/ecearth3/tags/3.2.2 ecearth_3.2.2