]> Creatis software - clitk.git/commitdiff
Removed warning introcued by commit 19f3573f7b12d29bb33c80311ee1e8ff7bcb01f3
authorSimon Rit <simon.rit@creatis.insa-lyon.fr>
Thu, 3 Oct 2013 10:49:47 +0000 (12:49 +0200)
committerSimon Rit <simon.rit@creatis.insa-lyon.fr>
Thu, 3 Oct 2013 10:49:47 +0000 (12:49 +0200)
cluster_tools/gate_power_merge.sh

index e10510e198b51f913782cc4a0cce88ffd9121156..3a9bba6b23b01002bb32dd303a9d3259dd787475 100755 (executable)
@@ -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}"