diff --git a/workflow/scripts/bdbagFetch.sh b/workflow/scripts/bdbagFetch.sh index fc0ffabe6de392cf220f9b0a93659ca19888a7ba..d009ed8831f25993a97d32027f4f754255fbcc5b 100644 --- a/workflow/scripts/bdbagFetch.sh +++ b/workflow/scripts/bdbagFetch.sh @@ -2,13 +2,13 @@ if [ -z "${3}" ] then -bdbag --resolve-fetch all --fetch-filter filename\$*fastq.gz ${1} + bdbag --resolve-fetch all --fetch-filter filename\$*fastq.gz ${1} for i in $(find */ -name "*.R*.fastq.gz") do path=${2}$(echo ${i##*/} | grep -o "\.R.\.fastq\.gz") - mv ${i} ./${path} + cp ${i} ./${path} done elif [ "${3}" == "TEST" ] then bdbag --resolve-fetch all --fetch-filter filename\$*.txt ${1} -fi \ No newline at end of file +fi