Commit 2338b52
authored
fix: resolve second subshell issue in image-only validation (#16)
## Problem
Found a second subshell issue in the `validate-image-only-changed` step
that was causing the same false failure problem.
## Root Cause
The loop checking if only image field changed also used a pipe pattern:
```bash
echo "$CHANGED_FILES" | jq -r '.[]' | while IFS= read -r file; do
# validation code that writes to /tmp files
done
```
This creates a subshell where file writes don't persist after the loop.
## Solution
Applied the same process substitution fix:
```bash
while IFS= read -r file; do
# validation code
done < <(echo "$CHANGED_FILES" | jq -r '.[]')
```
## Testing
This will be validated with PR #362 in deutschebank-infrastructure
repository.
## Related
- Fixes same issue as #15
- Required for dotCMS/deutschebank-infrastructure#3621 parent a7bf57e commit 2338b52
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
| 289 | + | |
| 290 | + | |
290 | 291 | | |
291 | 292 | | |
292 | 293 | | |
| |||
330 | 331 | | |
331 | 332 | | |
332 | 333 | | |
333 | | - | |
| 334 | + | |
334 | 335 | | |
335 | 336 | | |
336 | 337 | | |
| |||
0 commit comments