Update diff-sha.sh

This commit is contained in:
Tonye Jack
2022-12-16 07:26:48 -07:00
committed by GitHub
parent 40f3d5695f
commit e034ba961f

View File

@@ -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