build: count files without a failing arithmetic command
release / release (push) Canceled after 0s

Under set -e, ((n++)) with n at 0 evaluates to 0 and exits the script. Bash
3.2 on macOS ignores that case, so local builds passed while the release
runner's bash 5 stopped silently on the first file.
This commit is contained in:
2026-10-15 08:03:53 +02:00
parent 7e59978f07
commit 11ef1715ab
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ for filename in "${BUILD_FILES[@]}"; do
if [ -f "$filepath" ]; then
cat "$filepath" >> "$OUTPUT"
echo "" >> "$OUTPUT"
((file_count++))
file_count=$((file_count + 1))
else
echo "Warning: $filename not found, skipping" >&2
fi