From e034ba961f95633ea20807b5fb96beef80c91597 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Fri, 16 Dec 2022 07:26:48 -0700 Subject: [PATCH] Update diff-sha.sh --- diff-sha.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diff-sha.sh b/diff-sha.sh index dac16aab..ae3c6697 100644 --- a/diff-sha.sh +++ b/diff-sha.sh @@ -255,7 +255,7 @@ else if [[ -z "$INPUT_BASE_SHA" ]]; then NEW_PREVIOUS_SHA=$(git merge-base --fork-point "$TARGET_BRANCH" "$CURRENT_SHA") - if [[ -n $NEW_PREVIOUS_SHA ]]; then + if [[ -n "$NEW_PREVIOUS_SHA" ]]; then PREVIOUS_SHA=$NEW_PREVIOUS_SHA fi fi