Skip to content
Snippets Groups Projects
Commit 10081c56 authored by Marcel Loose's avatar Marcel Loose :sunglasses:
Browse files

Merge branch 'bash-exit-on-error' into 'master'

Let inline bash scripts exit on error

See merge request eosc/prefactor3-cwl!56

Former-commit-id: 4185da9d
Former-commit-id: 58ecb47e
parents 7950f383 06dd380b
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,6 @@ requirements: ...@@ -23,7 +23,6 @@ requirements:
entry: | entry: |
#!/bin/bash #!/bin/bash
set -e set -e
INPUT_H5PARM=$(inputs.input_h5parm.basename) INPUT_H5PARM=$(inputs.input_h5parm.basename)
DO_PLOTS=$(inputs.execute) DO_PLOTS=$(inputs.execute)
if [ "$DO_PLOTS" = "true" ]; then if [ "$DO_PLOTS" = "true" ]; then
......
...@@ -29,7 +29,6 @@ requirements: ...@@ -29,7 +29,6 @@ requirements:
entry: | entry: |
#!/bin/bash #!/bin/bash
set -e set -e
INPUT_H5PARM=$(inputs.input_h5parm.basename) INPUT_H5PARM=$(inputs.input_h5parm.basename)
DO_SMOOTH=$(inputs.execute) DO_SMOOTH=$(inputs.execute)
if [ "$DO_SMOOTH" = "true" ]; then if [ "$DO_SMOOTH" = "true" ]; then
......
...@@ -62,6 +62,7 @@ requirements: ...@@ -62,6 +62,7 @@ requirements:
- entryname: ms_concat.sh - entryname: ms_concat.sh
entry: | entry: |
#!/bin/bash #!/bin/bash
set -e
directories=\$(ls -d out_*) directories=\$(ls -d out_*)
#echo \$directories #echo \$directories
mkdir -pv workdir mkdir -pv workdir
......
...@@ -135,6 +135,7 @@ requirements: ...@@ -135,6 +135,7 @@ requirements:
- entryname: aoflag.sh - entryname: aoflag.sh
entry: | entry: |
#!/bin/bash #!/bin/bash
set -e
directories=\$(ls -d out*) directories=\$(ls -d out*)
echo \$directories echo \$directories
mkdir -pv workdir mkdir -pv workdir
......
...@@ -36,4 +36,4 @@ requirements: ...@@ -36,4 +36,4 @@ requirements:
cp "\${FILE_LIST[\$i]}" "tmp/\${FILE_PREFIX}_\${i}\${FILE_SUFFIX}" cp "\${FILE_LIST[\$i]}" "tmp/\${FILE_PREFIX}_\${i}\${FILE_SUFFIX}"
done done
writable: false writable: false
- class: InlineJavascriptRequirement - class: InlineJavascriptRequirement
\ No newline at end of file
...@@ -23,6 +23,7 @@ requirements: ...@@ -23,6 +23,7 @@ requirements:
- entryname: 'untar.sh' - entryname: 'untar.sh'
entry: | entry: |
#!/bin/bash #!/bin/bash
set -e
mkdir out mkdir out
cd out cd out
tar -xvf $1 tar -xvf $1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment