From 94c9f7e6a2c1b0b161a1b12d4ed9dd1c9b2ef0a1 Mon Sep 17 00:00:00 2001 From: Scion Date: Sat, 28 Jun 2025 00:28:19 -0700 Subject: [PATCH] Added exit codes back. --- unity-command/entrypoint.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/unity-command/entrypoint.sh b/unity-command/entrypoint.sh index 414e949..b8df157 100644 --- a/unity-command/entrypoint.sh +++ b/unity-command/entrypoint.sh @@ -25,12 +25,12 @@ else echo " unity-editor $DEFAULT_ARGS $COMMAND" unity-editor $DEFAULT_ARGS $COMMAND fi -#RESULT=$? -#echo "Unity command exited with code: $RESULT" +RESULT=$? +echo "Unity command exited with code: $RESULT" echo "::endgroup::" -#echo "exitCode=$RESULT" >> "$GITHUB_OUTPUT" +echo "exitCode=$RESULT" >> "$GITHUB_OUTPUT" -# if [[ "$CATCH_ERRORS" != "true" ]]; then -# exit $RESULT -# fi +if [[ "$CATCH_ERRORS" != "true" ]]; then + exit $RESULT +fi