From e285ead8ffcdb10a73a8d06a1f6feddf612d6127 Mon Sep 17 00:00:00 2001 From: Daniil Samoylov Date: Tue, 13 Apr 2021 16:28:58 +1200 Subject: [PATCH] Fix eol issues in the build --- __test__/verify-no-unstaged-changes.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 ----------------------------------------