From 931aafa07905dfc588a2f068d2a4b7c60b22a0ff Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Sat, 14 May 2022 02:35:56 -0400 Subject: [PATCH] chore: Update the exit status when --- diff-sha.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diff-sha.sh b/diff-sha.sh index 93d6a1bb..9c6e07e4 100644 --- a/diff-sha.sh +++ b/diff-sha.sh @@ -57,7 +57,7 @@ if [[ -z $GITHUB_BASE_REF ]]; then if [[ $(git rev-list --count HEAD) -gt 1 ]]; then PREVIOUS_SHA=$(git rev-list --no-merges -n 1 HEAD^1 2>&1) && exit_status=$? || exit_status=$? else - PREVIOUS_SHA=$CURRENT_SHA + PREVIOUS_SHA=$CURRENT_SHA && exit_status=$? || exit_status=$? echo "Initial commit detected" fi else