File tree Expand file tree Collapse file tree
src/test/resources/testnextflowvdsl3/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,10 +7,8 @@ par_output='output_*.txt'
77
88output_i=0
99
10- if [ ! -z " $par_input " ]; then
11- IFS=" ;"
12- for var in $par_input ; do
13- unset IFS
10+ if [ ${# par_input[@]} -gt 0 ]; then
11+ for var in " ${par_input[@]} " ; do
1412 output=$( echo " $par_output " | sed " s/\*/$output_i /g" )
1513 cp " $var " " $output "
1614 output_i=$(( output_i+ 1 ))
Original file line number Diff line number Diff line change 22
33[ -f " $par_output " ] && rm " $par_output "
44
5- if [ ! -z " $par_input " ]; then
6- IFS=" ;"
7- for var in $par_input ; do
8- unset IFS
5+ if [ ${# par_input[@]} -gt 0 ]; then
6+ for var in " ${par_input[@]} " ; do
97 cat " $var " >> " $par_output "
108 done
119fi
Original file line number Diff line number Diff line change @@ -7,10 +7,8 @@ function clean_up {
77trap clean_up EXIT
88
99
10- if [ ! -z " $par_input " ]; then
11- IFS=" ;"
12- for var in $par_input ; do
13- unset IFS
10+ if [ ${# par_input[@]} -gt 0 ]; then
11+ for var in " ${par_input[@]} " ; do
1412 cat " $var " >> " $tmpfile "
1513 done
1614fi
You can’t perform that action at this time.
0 commit comments