From 4cc15bab9868f34c64006d9e8b5db949fad1b3c0 Mon Sep 17 00:00:00 2001 From: Den Delimarsky <53200638+localden@users.noreply.github.com> Date: Sat, 20 Sep 2025 19:54:33 -0700 Subject: [PATCH] Update scripts/bash/update-agent-context.sh Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- scripts/bash/update-agent-context.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/bash/update-agent-context.sh b/scripts/bash/update-agent-context.sh index bba241576..4997158a2 100644 --- a/scripts/bash/update-agent-context.sh +++ b/scripts/bash/update-agent-context.sh @@ -311,8 +311,8 @@ create_new_agent_file() { done # Convert \n sequences to actual newlines - sed -i.bak2 's/\\n/\ -/g' "$temp_file" + newline=$(printf '\n') + sed -i.bak2 "s/\\\\n/${newline}/g" "$temp_file" # Clean up backup files rm -f "$temp_file.bak" "$temp_file.bak2"