From d9a3fc673db40530bb91a9c3274d82979831509a Mon Sep 17 00:00:00 2001 From: mancini <mancini@astron.nl> Date: Thu, 1 Apr 2021 15:01:29 +0200 Subject: [PATCH] Fix basename --- steps/compress.cwl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/steps/compress.cwl b/steps/compress.cwl index c423315..4bb3378 100644 --- a/steps/compress.cwl +++ b/steps/compress.cwl @@ -24,4 +24,5 @@ requirements: entry: | #!/bin/bash mkdir out - tar -cvf out/$1.tar.gz $1 + dir_name=\$(basename $1) + tar -cvf out/${dir_name}.tar.gz $1 -- GitLab