From: Simon Rit Date: Thu, 3 Oct 2013 10:49:47 +0000 (+0200) Subject: Removed warning introcued by commit 19f3573f7b12d29bb33c80311ee1e8ff7bcb01f3 X-Git-Tag: v1.4.0~158 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=00c8f6f45a52ea7d9dd707c82dcd0376095a3f6f;p=clitk.git Removed warning introcued by commit 19f3573f7b12d29bb33c80311ee1e8ff7bcb01f3 --- diff --git a/cluster_tools/gate_power_merge.sh b/cluster_tools/gate_power_merge.sh index e10510e..3a9bba6 100755 --- a/cluster_tools/gate_power_merge.sh +++ b/cluster_tools/gate_power_merge.sh @@ -299,7 +299,7 @@ function merge_mhd_image { update_bar ${count} "adding ${partial}" ${mhdImageMerger} -t 0 -i "${partial}" -j "${merged}" -o "${merged}" 2> /dev/null > /dev/null || warning "error while calling ${mhdImageMerger}" - if test "$last_character" = "d" + if test "$last_character" = "d" && test "${merged_bin}" != "${merged_bin%.*}.${partial_bin##*.}" then mv "${merged_bin}" "${merged_bin%.*}.${partial_bin##*.}" sed -i "s/$(basename "${merged_bin}")/$(basename "${merged_bin%.*}.${partial_bin##*.}")/" "${merged}"