From 4296be5205370baf32228c283ed8cd5670deabfe Mon Sep 17 00:00:00 2001 From: Alex Bowers Date: Thu, 10 Aug 2023 11:31:42 +0100 Subject: [PATCH] Change to use `git status` --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 242a468..7f6272e 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -167,7 +167,7 @@ git add . echo "[+] git status:" git status -if [ "$ALLOW_EMPTY_BRANCHES" = "false" ] && [ "$(git diff --numstat | wc -l | xargs echo -n)" -eq 0 ] +if [ "$ALLOW_EMPTY_BRANCHES" = "false" ] && [ "$(git status)" = "nothing to commit, working tree clean" ] then echo "[~] No changes have been made" else