diff --git a/.github/workflows/commit.yml b/.github/workflows/commit.yml index da7d82d..f805fdd 100644 --- a/.github/workflows/commit.yml +++ b/.github/workflows/commit.yml @@ -27,7 +27,7 @@ jobs: run: | tr -d $'\r' < controls/controls_catalog.csv > controls/controls_catalog.tmp mv controls/controls_catalog.tmp controls/controls_catalog.csv - if ! git diff-index --quiet HEAD --; then echo 'Please remove carriage returns from controls/controls_catalog.csv'; exit 1; fi + if [ -n "$(git status --porcelain)" ]; then echo 'Please remove carriage returns from controls/controls_catalog.csv'; exit 1; fi - name: Setup python uses: actions/setup-python@v4 with: