From: Pierre Gueth Date: Wed, 20 Jun 2012 14:50:07 +0000 (+0200) Subject: bugfix X-Git-Tag: v1.4.0~177^2~15 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=6d806c6fa5c860e1d469f5e947b9473c569bd75e;p=clitk.git bugfix --- diff --git a/cluster_tools/gate_power_merge.sh b/cluster_tools/gate_power_merge.sh index 590fcd6..caec94a 100755 --- a/cluster_tools/gate_power_merge.sh +++ b/cluster_tools/gate_power_merge.sh @@ -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"