diff --git a/steps/fetch_file.cwl b/steps/fetch_file.cwl index f1f92999623d32a0e2c4d009ca10f9a57500fd71..aad47ddabafc2cb01d9042ae98271ae58a07ef0e 100644 --- a/steps/fetch_file.cwl +++ b/steps/fetch_file.cwl @@ -27,7 +27,8 @@ requirements: mkdir out cd out turl=`echo $1 | awk '{gsub("srm://srm.grid.sara.nl[:0-9]*","gsiftp://gridftp.grid.sara.nl"); print}'` + filename=`echo $1 | awk '{sub(".*/", "", $1); print $0}'` echo "Downloading $turl" - globus-url-copy $turl . + globus-url-copy $turl file://$PWD/$filename