From 1faa996b8782803fb39958368a3443a5b5266ecc Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Fri, 2 Sep 2022 16:41:25 -0600 Subject: [PATCH] Updated setting the exit status --- diff-sha.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diff-sha.sh b/diff-sha.sh index da65bba2777..663f421fd34 100644 --- a/diff-sha.sh +++ b/diff-sha.sh @@ -46,7 +46,7 @@ else fi echo "Verifying the commit SHA: $CURRENT_SHA" -git rev-parse --quiet --verify "$CURRENT_SHA^{commit}" 1>/dev/null 2>&1; exit_status=$? +git rev-parse --quiet --verify "$CURRENT_SHA^{commit}" 1>/dev/null 2>&1 && exit_status=$? || exit_status=$? if [[ $exit_status -ne 0 ]]; then echo "::error::Unable to locate the current sha: $CURRENT_SHA"