From 7ca89d5c8059e0b0cabe62582ff88f634a041ce3 Mon Sep 17 00:00:00 2001 From: Jennifer Power Date: Wed, 5 Jul 2023 14:46:12 -0400 Subject: [PATCH] chore: updates eval line in entrypoint to fix exit codes Signed-off-by: Jennifer Power --- entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 7fe97cd3..2b845bcf 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -52,7 +52,8 @@ if [[ ${INPUT_CHECK_ONLY} == true ]]; then command+=" --check-only" fi -output=$( eval "$command" | tee /dev/fd/3) +output=$(eval "$command" 2>&1 > >(tee /dev/fd/3)) + commit=$(echo "$output" | grep "Commit Hash:" | sed 's/.*: //')