changeset 37:9298fd6e7443 draft

Uploaded
author greg
date Tue, 22 Aug 2017 11:31:14 -0400
parents 859687afe7bc
children 3421fff414de
files ideas.xml
diffstat 1 files changed, 28 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ideas.xml	Tue Aug 22 11:22:09 2017 -0400
+++ b/ideas.xml	Tue Aug 22 11:31:14 2017 -0400
@@ -104,10 +104,34 @@
 -maxerr $max_standard_dev
 -thread \${GALAXY_SLOTS:-4}
 > $output_log
-&& if [ -f *.cluster ] ; then mv *.cluster $output_cluster
-&& if [ -f *.para ] ; then mv *.para $output_para
-&& if [ -f *.profile ] ; then mv *.profile $output_profile
-&& if [ -f *.state ] ; then mv *.state $output_state
+&& for file in ./*.cluster
+do
+    if [ -f "${file}" ]; then
+    mv "${file}" $output_cluster;
+    break
+    fi
+done
+&& for file in ./*.para
+do
+    if [ -f "${file}" ]; then
+    mv "${file}" $output_para;
+    break
+    fi
+done
+&& for file in ./*.profile
+do
+    if [ -f "${file}" ]; then
+    mv "${file}" $output_profile;
+    break
+    fi
+done
+&& for file in ./*.state
+do
+    if [ -f "${file}" ]; then
+    mv "${file}" $output_state;
+    break
+    fi
+done
     ]]></command>
     <configfiles>
         <configfile name="prep_input_config"><![CDATA[#for $input_items in $input_type_cond.input_repeat: