Skip to content
Snippets Groups Projects

Allow downloads from juelich.de and psnc.pl

1 file
+ 7
6
Compare changes
  • Side-by-side
  • Inline
+ 7
6
@@ -2,18 +2,18 @@ id: fetchdata
label: fetch_data
class: CommandLineTool
cwlVersion: v1.1
inputs:
inputs:
- id: surl_link
type: string
inputBinding:
position: 0
outputs:
outputs:
- id: uncompressed
type: Directory
outputBinding:
glob: 'out/*'
baseCommand:
baseCommand:
- 'bash'
- 'fetch.sh'
doc: 'Untar a compressed file'
@@ -21,13 +21,14 @@ requirements:
InlineJavascriptRequirement: {}
InitialWorkDirRequirement:
listing:
- entryname: 'fetch.sh'
- entryname: 'fetch.sh'
entry: |
#!/bin/bash
mkdir out
cd out
turl=`echo $1 | awk '{gsub("srm://srm.grid.sara.nl[:0-9]*","gsiftp://gridftp.grid.sara.nl"); print}'`
turl=`echo $turl | awk '{gsub("srm://lta-head.lofar.psnc.pl[:0-9]*","gsiftp://gridftp.lofar.psnc.pl"); print}'`
turl=`echo $turl | awk '{gsub("srm://lofar-srm.fz-juelich.de[:0-9]*","gsiftp://lofar-gridftp.fz-juelich.de"); print}'`
echo "Downloading $turl"
globus-url-copy $turl - | tar -xvf -
Loading