From 00c8f6f45a52ea7d9dd707c82dcd0376095a3f6f Mon Sep 17 00:00:00 2001 From: Simon Rit Date: Thu, 3 Oct 2013 12:49:47 +0200 Subject: [PATCH] Removed warning introcued by commit 19f3573f7b12d29bb33c80311ee1e8ff7bcb01f3 --- cluster_tools/gate_power_merge.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}" -- 2.47.1