Skip to content

Commit b4b0dcc

Browse files
committed
Fix traps.
1 parent 149f1ab commit b4b0dcc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: entrypoint.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ cleanup() {
1414
log "Killing ssh agent."
1515
ssh-agent -k
1616
}
17-
trap exit cleanup
17+
trap cleanup EXIT
1818

1919
ssh-add <(echo "$SSH_PRIVATE_KEY")
2020

@@ -32,7 +32,7 @@ cleanup() {
3232
3333
log "Creating workspace directory..."
3434
mkdir "$$HOME/workspace"
35-
trap exit cleanup
35+
trap cleanup EXIT
3636
3737
log "Unpacking workspace..."
3838
tar -C "$$HOME/workspace" xjv

0 commit comments

Comments
 (0)