Skip to content

Commit 4cc15ba

Browse files
localdenCopilot
andauthored
Update scripts/bash/update-agent-context.sh
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 8d52959 commit 4cc15ba

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/bash/update-agent-context.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,8 @@ create_new_agent_file() {
311311
done
312312

313313
# Convert \n sequences to actual newlines
314-
sed -i.bak2 's/\\n/\
315-
/g' "$temp_file"
314+
newline=$(printf '\n')
315+
sed -i.bak2 "s/\\\\n/${newline}/g" "$temp_file"
316316

317317
# Clean up backup files
318318
rm -f "$temp_file.bak" "$temp_file.bak2"

0 commit comments

Comments
 (0)