# run job scripts within the tool outputs directory
cd ${REPORT_FILES_PATH}

#========== build and run job 1 script ============
cat >bdss-download.sh <<EOF
#------------ BELOW IS WHERE YOU WRITE YOUR OWN SHELL SCRIPT --------------
export PATH=/main/sites/galaxy/galaxy/tools/_conda/bin:$PATH

for $u in $(echo $X_u | sed "s/,/ /g");
do
  echo "bdss transfer --destination download_dir -u $u"
done


#------------ END OF SHELL SCRIPT ------------------------------------------  
EOF


sh bdss-download.sh
