From 908189b494150ea86e29794b9f779e74139775e3 Mon Sep 17 00:00:00 2001 From: Nathan DuPont Date: Thu, 28 Mar 2024 00:49:26 -0700 Subject: [PATCH] test --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4918055..396e9b0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -31,9 +31,9 @@ jobs: run: | set +x formatted_files=$(find ./config ./src ./tools -newer /tmp/pre_fmt) - num_formatted_files=$(echo $formatted_files | wc -l) + num_formatted_files=$(find ./config ./src ./tools -newer /tmp/pre_fmt | wc -l) echo $num_formatted_files - if [ "$num_formatted_files" -ne "0" ]; then + if [ "$num_formatted_files" -gt "0" ]; then echo "❌🔥 Bad code detected! The following files would be reformatted:" echo "$formatted_files" exit 1