This commit is contained in:
Alex Bowers 2023-08-10 11:38:18 +01:00 committed by GitHub
parent 4296be5205
commit 8d707905ec
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 status)" = "nothing to commit, working tree clean" ]
if [ "$ALLOW_EMPTY_BRANCHES" = "false" ] && [ "$(git status --short | wc -l | xargs echo -n)" = "0" ]
then
echo "[~] No changes have been made"
else