Skip to content
Snippets Groups Projects
Commit 0d22f315 authored by Mattia Mancini's avatar Mattia Mancini
Browse files

Fix compress step

parent d9a3fc67
No related branches found
No related tags found
No related merge requests found
......@@ -5,8 +5,6 @@ cwlVersion: v1.0
inputs:
- id: directory
type: Directory
inputBinding:
position: 0
outputs:
- id: compressed
......@@ -18,11 +16,12 @@ baseCommand:
- 'tar.sh'
doc: 'Untar a compressed file'
requirements:
# InlineJavascriptRequirement: {}
InitialWorkDirRequirement:
listing:
- entryname: 'tar.sh'
entry: |
#!/bin/bash
mkdir out
dir_name=\$(basename $1)
tar -cvf out/${dir_name}.tar.gz $1
tar -cvf out/$(inputs.directory.basename).tar.gz $(inputs.directory.path)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment