add extra checker

This commit is contained in:
Rick Farina (Zero_Chaos) 2025-12-11 22:13:41 -05:00
parent b09611a692
commit 1c276141df
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC

View file

@ -5,6 +5,10 @@ if [ -z "${1:-}" ]; then
exit 1
fi
set -x
if [ -z "$(git diff-tree --no-commit-id --name-only -r "${1}")" ]; then
printf "No changed files detected, nothing to do\n"
exit 1
fi
for i in $(git diff-tree --no-commit-id --name-only -r "${1}"); do
if [ "${i%.ebuild}" != "${i}" ]; then
printf "%s looks like an ebuild, testing\n" "${i}"