X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=cluster_tools%2Fgate_power_merge.sh;h=df46813513a2947539338c24dd20dbdb70f5eae4;hb=8b965f85c8e581f12fa9b24bc002aab2bfb7aa9b;hp=c35d67d6b4238389d1e2ff7af17c483f6077730b;hpb=8b5dadbe47d0e7e314313055b1b1bc165109d322;p=clitk.git diff --git a/cluster_tools/gate_power_merge.sh b/cluster_tools/gate_power_merge.sh index c35d67d..df46813 100755 --- a/cluster_tools/gate_power_merge.sh +++ b/cluster_tools/gate_power_merge.sh @@ -290,7 +290,7 @@ function merge_mhd_image { then update_bar ${count} "copying first partial result ${partial}" cp "${partial}" "${merged}" - if test "$last_character" = "d" + if test "$last_character" = "d" then cp "${partial_bin}" "${merged_bin%.*}.${partial_bin##*.}" fi @@ -496,7 +496,7 @@ echo "!!!! this is $0 v0.3k !!!!" rundir="${1?"provide run dir"}" rundir="$(echo "${rundir}" | sed 's|/*$||')" -nboutputdirs="$(find "${rundir}" -mindepth 1 -type d -o -type l -name 'output*' | wc -l)" +nboutputdirs="$(find "${rundir}" -mindepth 1 -name 'output*' -type d -o -type l | wc -l)" test ${nboutputdirs} -gt 0 || error "no output dir found" echo "found ${nboutputdirs} partial output dirs"