mirror of
https://github.com/anchore/syft.git
synced 2026-02-13 19:16:43 +01:00
chore: use git ls-files instead of find to list files (#4425)
Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com>
This commit is contained in:
parent
e556ceb4a8
commit
d37ed567a8
2
.github/scripts/check_binary_fixture_size.sh
vendored
2
.github/scripts/check_binary_fixture_size.sh
vendored
@ -24,7 +24,7 @@ while IFS= read -r -d '' file; do
|
|||||||
echo "File $file is greater than ${size} bytes."
|
echo "File $file is greater than ${size} bytes."
|
||||||
found_large_files=1
|
found_large_files=1
|
||||||
fi
|
fi
|
||||||
done < <(find "$directory" -type f -print0)
|
done < <(git ls-files -z "$directory")
|
||||||
|
|
||||||
if [ "$found_large_files" -eq 1 ]; then
|
if [ "$found_large_files" -eq 1 ]; then
|
||||||
echo "Script failed: Some files are greater than ${size} bytes."
|
echo "Script failed: Some files are greater than ${size} bytes."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user