Count packages a build writes straight into releases/

This commit is contained in:
Weston Blieden
2026-08-22 08:27:52 +02:00
parent d2f2cd13a4
commit d615191fc2
+4 -4
View File
@@ -25,15 +25,15 @@ mkdir -p releases
echo "== $COMMAND"
eval "$COMMAND"
# Repos drop packages in the root, build/, build_<arch>/ or releases/ depending
# on the repo, so collect from anywhere except releases/ itself.
found=0
# Repos drop packages in the root, build/, build_<arch>/ or straight into
# releases/ depending on the repo, so gather any strays and then count what
# actually ended up in releases/.
while IFS= read -r package; do
[ -n "$package" ] || continue
mv "$package" releases/
found=$((found + 1))
done < <(find . -name '*.eap' -not -path './releases/*' -not -path './.git/*')
found=$(find releases -name '*.eap' | wc -l | tr -d ' ')
[ "$found" -gt 0 ] || {
echo "no .eap produced" >&2
exit 1