Change to use git status

This commit is contained in:
Alex Bowers 2023-08-10 11:31:42 +01:00 committed by GitHub
parent 15a6ec1f72
commit 4296be5205
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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