Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/e2e/template_instantiation_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ find "$TEST_REPO_PATH" -type f \
sed -i "s|$placeholder|$value|g" "$file"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 HIGH RISK

The subshell script refers to "$file" which is likely unset in this scope. Since find passes the filename as the first positional parameter, you should assign file="$1" at the start of the sh -c block or use "$1" directly.

Suggested prompt for your agent:

In tests/e2e/template_instantiation_test.sh, find the find ... -exec sh -c block and ensure that file="$1" is assigned at the beginning of the subshell script so that subsequent sed and grep commands use the correct filename matched by find.

fi
done
' _ "$file"
' _ {} \;

log_pass "All placeholder tokens replaced"

Expand Down