]> Creatis software - clitk.git/blobdiff - cluster_tools/gate_power_merge.sh
save params in merged dir and merge detection script
[clitk.git] / cluster_tools / gate_power_merge.sh
index 2e9776dc7559c5e940be7b3bd58a24cad4b45fcb..9710866e1e06e793de1a0fcb35daf858eb95e66a 100755 (executable)
@@ -238,7 +238,13 @@ mkdir "${outputdir}"
 
 for outputfile in $(find "${rundir}" -regextype 'posix-extended' -type f -regex '.*\.(hdr|root|txt)' | awk -F '/' '{ print $NF }' | sort | uniq)
 do
-       merge_dispatcher "${outputfile}"
+    merge_dispatcher "${outputfile}"
 done
 
+if [ -f "${rundir}/params.txt" ]
+then
+       echo "copying params file"
+       cp "${rundir}/params.txt" "${outputdir}/params.txt"
+fi
+
 echo "these was ${warning_count} warning(s)"