diff --git a/.github/scripts/check_binary_fixture_size.sh b/.github/scripts/check_binary_fixture_size.sh index 764824820..09e79a1a4 100755 --- a/.github/scripts/check_binary_fixture_size.sh +++ b/.github/scripts/check_binary_fixture_size.sh @@ -24,7 +24,7 @@ while IFS= read -r -d '' file; do echo "File $file is greater than ${size} bytes." found_large_files=1 fi -done < <(find "$directory" -type f -print0) +done < <(git ls-files -z "$directory") if [ "$found_large_files" -eq 1 ]; then echo "Script failed: Some files are greater than ${size} bytes."