Update scripts/bash/update-agent-context.sh
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -293,9 +293,9 @@ create_new_agent_file() {
|
|||||||
|
|
||||||
# Perform substitutions with error checking using safer approach
|
# Perform substitutions with error checking using safer approach
|
||||||
# Escape special characters for sed by using a different delimiter or escaping
|
# Escape special characters for sed by using a different delimiter or escaping
|
||||||
local escaped_lang=$(printf '%s\n' "$NEW_LANG" | sed 's/[[\.*^$()+{}|]/\\&/g')
|
local escaped_lang=$(printf '%s\n' "$NEW_LANG" | sed 's/[\[\.*^$()+{}|]/\\&/g')
|
||||||
local escaped_framework=$(printf '%s\n' "$NEW_FRAMEWORK" | sed 's/[[\.*^$()+{}|]/\\&/g')
|
local escaped_framework=$(printf '%s\n' "$NEW_FRAMEWORK" | sed 's/[\[\.*^$()+{}|]/\\&/g')
|
||||||
local escaped_branch=$(printf '%s\n' "$CURRENT_BRANCH" | sed 's/[[\.*^$()+{}|]/\\&/g')
|
local escaped_branch=$(printf '%s\n' "$CURRENT_BRANCH" | sed 's/[\[\.*^$()+{}|]/\\&/g')
|
||||||
|
|
||||||
# Build technology stack and recent change strings conditionally
|
# Build technology stack and recent change strings conditionally
|
||||||
local tech_stack
|
local tech_stack
|
||||||
|
|||||||
Reference in New Issue
Block a user