Skip to content
Snippets Groups Projects
Commit 6db31cc1 authored by BlackEagle's avatar BlackEagle Committed by Pierre Schmitz
Browse files

when cleanup is called without code exit with 0

parent 4ee45fe6
No related branches found
No related tags found
No related merge requests found
...@@ -65,7 +65,7 @@ setup_workdir() { ...@@ -65,7 +65,7 @@ setup_workdir() {
cleanup() { cleanup() {
[[ -n $WORKDIR ]] && rm -rf "$WORKDIR" [[ -n $WORKDIR ]] && rm -rf "$WORKDIR"
[[ $1 ]] && exit $1 exit ${1:-0}
} }
abort() { abort() {
......
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