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"
fi
done
' _ "$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 references variables ($file, $placeholder, $value) that are not expanded by the parent shell because of the single-quote wrapping. Additionally, although {} is now passed to the subshell, it maps to $1 and is never assigned to the $file variable used in the sed command on line 137. Try running the following prompt in your coding agent: > Update the find -exec command to pass $placeholder and $value as arguments to the subshell, and modify the internal script to use these arguments (e.g., by assigning file="$1" at the start).


log_pass "All placeholder tokens replaced"

Expand Down
Loading