Skip to content
Snippets Groups Projects
Commit 66591ecd authored by Gervaise Henry's avatar Gervaise Henry :cowboy:
Browse files

Fix if not exist in bdbagFetch.sh

parent cf08008a
Branches
Tags
3 merge requests!37v0.0.1,!24Develop,!23Resolve "process_RSeQC"
Pipeline #6010 failed with stages
in 3 minutes and 13 seconds
#!/bin/bash
if [ -z ${3} ]
if [ -z "${3}" ]
then
bdbag --resolve-fetch all --fetch-filter filename\$*fastq.gz ${1}
for i in $(find */ -name "*.R*.fastq.gz")
......@@ -8,7 +8,7 @@ bdbag --resolve-fetch all --fetch-filter filename\$*fastq.gz ${1}
path=${2}$(echo ${i##*/} | grep -o "\.R.\.fastq\.gz")
mv ${i} ./${path}
done
elif [ ${3} == "TEST" ]
elif [ "${3}" == "TEST" ]
then
bdbag --resolve-fetch all --fetch-filter filename\$*.txt ${1}
fi
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment