Skip to content

Commit be23719

Browse files
Fix silent exit due to arithmetic expression with set -e
((processed_count++)) returns exit code 1 when count is 0, causing silent termination with set -e. Use assignment form instead. Co-Authored-By: Claude (global.anthropic.claude-opus-4-5-20251101-v1:0) <noreply@anthropic.com>
1 parent 5277b6e commit be23719

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stage_for_s3.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ for file in *.tar.xz; do
119119
echo "✓ Done: Archive now contains:"
120120
tar -tf "$new_name" | head
121121
echo ""
122-
((processed_count++))
122+
processed_count=$((processed_count + 1))
123123
else
124124
echo "Warning: Skipped $new_name due to unexpected filename format."
125125
fi

0 commit comments

Comments
 (0)