]> Creatis software - clitk.git/commitdiff
bugfix
authorPierre Gueth <gueth@linux6.dg.creatis.insa-lyon.fr>
Wed, 20 Jun 2012 14:50:07 +0000 (16:50 +0200)
committerSimon Rit <simon.rit@creatis.insa-lyon.fr>
Thu, 27 Jun 2013 12:47:29 +0000 (14:47 +0200)
cluster_tools/gate_power_merge.sh

index 590fcd6c3df87903962099e8b4d698d4c939a2b2..caec94a252cd829af0fc575a04c4bcc5fe9041cc 100755 (executable)
@@ -241,6 +241,7 @@ function merge_dispatcher {
 echo "!!!! this is $0 v0.3g !!!!"
 
 rundir="${1?"provide run dir"}"
+rundir="$(echo "${rundir}" | sed 's|/*$||')"
 nboutputdirs="$(find "${rundir}" -mindepth 1 -type d -name 'output*' | wc -l)"
 
 test ${nboutputdirs} -gt 0 || error "no output dir found"