diff --git a/assets/out b/assets/out index 937de29..893b97e 100755 --- a/assets/out +++ b/assets/out @@ -17,4 +17,13 @@ git_config_payload=$(jq -r '.source.git_config // []' < $payload) configure_git_global "${git_config_payload}" -/opt/go/out $1 >&3 < $payload +_terminate() { + kill -TERM "$child" 2>/dev/null +} + +trap _terminate TERM + +/opt/go/out $1 >&3 < $payload & + +child=$! +wait "$child"