From 6d806c6fa5c860e1d469f5e947b9473c569bd75e Mon Sep 17 00:00:00 2001 From: Pierre Gueth Date: Wed, 20 Jun 2012 16:50:07 +0200 Subject: [PATCH] bugfix --- cluster_tools/gate_power_merge.sh | 1 + 1 file changed, 1 insertion(+) 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" -- 2.47.1