changeset 2:d8a46ae7ee8a draft

Uploaded
author dereeper
date Fri, 03 Jul 2015 04:37:26 -0400
parents 1dc58d808e72
children 0eebff4180d9
files tassel/tassel.sh
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
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