diff --git a/__test__/verify-no-unstaged-changes.sh b/__test__/verify-no-unstaged-changes.sh index a53fca9..b0c2254 100755 --- a/__test__/verify-no-unstaged-changes.sh +++ b/__test__/verify-no-unstaged-changes.sh @@ -1,9 +1,8 @@ #!/bin/bash # from https://github.com/actions/checkout/blob/25a956c84d5dd820d28caab9f86b8d183aeeff3d/__test__/verify-no-unstaged-changes.sh -git add . - -if [[ "$(git status --porcelain)" != "" ]]; then +DIFF=$(git diff --ignore-all-space) +if [[ '$DIFF' ]]; then echo ---------------------------------------- echo git status echo ----------------------------------------