diff tassel/tassel.sh @ 2:d8a46ae7ee8a draft

Uploaded
author dereeper
date Fri, 03 Jul 2015 04:37:26 -0400
parents 0aeea77b924a
children
line wrap: on
line diff
--- a/tassel/tassel.sh	Thu Feb 26 01:18:27 2015 -0500
+++ b/tassel/tassel.sh	Fri Jul 03 04:37:26 2015 -0400
@@ -7,12 +7,18 @@
 log1=$5;
 galaxyOutDir=$6;
 
+version=$(java -version 2>&1 | grep version)
+if [[ ! $version =~ 1.8 ]]; then
+    echo "Java found: $version. Tassel 5.0 requires java 1.8..." >&2
+    exit 1
+fi
 
 mkdir $galaxyOutDir
 
 # Suppression des 6 premiers arguments de la liste des arguments $@
 shift; shift; shift; shift; shift; shift;
 
+
 if [[ $analyseType == glm ]] 
 then
  run_pipeline.pl $* >> $log1 2>&1