FRET-LibAFL/scripts/check_for_blobs.sh
Andrea Fioraldi 40269a578b
Delete blob and add CI check (#867)
* Delete blob and add CI check

* fix

* shellcheck
2022-10-27 16:20:29 +02:00

20 lines
403 B
Bash
Executable File

#!/bin/bash
blobs=$(find . -type f -exec sh -c '
for f; do
mimetype -b "$f" | grep -Eq "application/(x-object|x-executable)" &&
printf "%s\n" "$f"
done
' sh {} +)
if [ -z "$blobs" ]
then
echo "No object or executable files in the root directory"
exit 0
else
echo "Hey! There are some object or executable file in the root directory!"
echo "$blobs"
echo "Aborting."
exit 1
fi