From cb6e920ac687805f160ac8c46048f4f86462e0ff Mon Sep 17 00:00:00 2001 From: D Morty k Date: Thu, 19 Oct 2023 16:45:50 -0400 Subject: [PATCH] fix: cat optional file (#462) --- Docker/run.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Docker/run.sh b/Docker/run.sh index 2e8e4ab..2ab5186 100755 --- a/Docker/run.sh +++ b/Docker/run.sh @@ -41,3 +41,7 @@ if [ "$SD_AWS_INTEGRATION" = "true" ]; then else SD_TOKEN=`/opt/sd/launch --only-fetch-token --token "$1" --api-uri "$2" --store-uri "$3" --ui-uri "$6" --emitter /sd/emitter --build-timeout "$4" --cache-strategy "$7" --pipeline-cache-dir "$8" --job-cache-dir "$9" --event-cache-dir "${10}" --cache-compress "${11}" --cache-md5check "${12}" --cache-max-size-mb "${13}" --cache-max-go-threads "${14}" "$5"` && (/opt/sd/launch --token "$SD_TOKEN" --api-uri "$2" --store-uri "$3" --ui-uri "$6" --emitter /sd/emitter --build-timeout "$4" --cache-strategy "$7" --pipeline-cache-dir "$8" --job-cache-dir "$9" --event-cache-dir "${10}" --cache-compress "${11}" --cache-md5check "${12}" --cache-max-size-mb "${13}" --cache-max-go-threads "${14}" "$5" & /opt/sd/logservice --token "$SD_TOKEN" --emitter /sd/emitter --api-uri "$2" --store-uri "$3" --build "$5" & wait $(jobs -p)) fi + +if [ -r /tmp/sd_event.json ]; then + cat /tmp/sd_event.json +fi