X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=cluster_tools%2Fgate_power_merge.sh;h=55fc1f00ce974e4a1430dc2be9f2647e641bd3f2;hb=b161f06e1441d4ebaed294d9254469266846b1c5;hp=44a41c0ed176399c378d43210a025bde782059c1;hpb=19f3573f7b12d29bb33c80311ee1e8ff7bcb01f3;p=clitk.git diff --git a/cluster_tools/gate_power_merge.sh b/cluster_tools/gate_power_merge.sh index 44a41c0..55fc1f0 100755 --- a/cluster_tools/gate_power_merge.sh +++ b/cluster_tools/gate_power_merge.sh @@ -130,7 +130,7 @@ do let count++ local arguments=" -i ${partial} ${arguments}" done -${rootMerger} ${arguments} > /dev/null || warning "error while calling ${rootMerger}" +${rootMerger} ${arguments} > /dev/null || error "error while calling ${rootMerger}" echo " ${indent}merged ${count} files" } @@ -276,7 +276,7 @@ function merge_dispatcher { local outputfile="${1:?"provide output filename"}" echo "merging ${outputfile}" - local partialoutputfiles="$(find "${rundir}" -type f -name "${outputfile}")" + local partialoutputfiles="$(find "${rundir}" -mindepth 2 -type f -name "${outputfile}")" local nboutputfiles="$(echo "${partialoutputfiles}" | wc -l)" if test ${nboutputdirs} -ne ${nboutputfiles} then @@ -379,7 +379,7 @@ function merge_dispatcher { error "unknown file type" } -echo "!!!! this is $0 v0.3j !!!!" +echo "!!!! this is $0 v0.3k !!!!" rundir="${1?"provide run dir"}" rundir="$(echo "${rundir}" | sed 's|/*$||')"