]> Creatis software - clitk.git/commitdiff
Debug hdr condition in gate_power_merge.sh
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Fri, 23 Jun 2017 08:39:29 +0000 (10:39 +0200)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Fri, 23 Jun 2017 08:39:29 +0000 (10:39 +0200)
cluster_tools/gate_power_merge.sh

index aaf063b18d4f8cc85be856ef0f19df1087c1570d..e7ea96bccf1185cd3085daa7e4c3e39b9b992347 100755 (executable)
@@ -329,9 +329,9 @@ function merge_dispatcher {
     local firstpartialoutputextension="${firstpartialoutputfile##*.}"
     echo "${indent}testing file type on ${firstpartialoutputfile}"
 
-    if test "${firstpartialoutputextension}" == "hdr" && grep -qs 'INTERFILE' "${firstpartialoutputfile}"
+    if test "${firstpartialoutputextension}" == "hdr" && test grep -qs 'INTERFILE' "${firstpartialoutputfile}"
     then
-        echo "${indent}this is a interfile image"
+        echo "${indent}this is an interfile image"
         echo "${indent}creating mhd headers"
         for partialoutputfile in $partialoutputfiles; do write_mhd_header "${partialoutputfile}"; done
         local mhd_partialoutputfiles="$(for partialoutputfile in $partialoutputfiles; do echo "${partialoutputfile%.*}.mhd"; done)"
@@ -347,7 +347,7 @@ function merge_dispatcher {
 
     if test "${firstpartialoutputextension}" == "hdr"
     then
-        echo "${indent}this is a analyse image"
+        echo "${indent}this is an analyse image"
         local mergedfile="${outputdir}/$(basename "${firstpartialoutputfile}")"
         merge_hdr_image "${mergedfile}" ${partialoutputfiles} || error "error while merging"
         return