Skip to content

Commit e55eb02

Browse files
committed
fix(sync-agents.sh): combine file appends to fix SC2129 style warning
1 parent b20d0b5 commit e55eb02

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

src/sh/sync-agents.sh

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -375,14 +375,15 @@ add_default_gitignore_entries() {
375375
if [[ "$line" == "$marker" ]]; then
376376
in_section=true
377377
# Output the marker
378-
echo "$line" >> "$tmp"
379-
# Output all default entries
380-
echo ".cursor/*" >> "$tmp"
381-
echo "!.cursor/rules" >> "$tmp"
382-
echo ".codex/*" >> "$tmp"
383-
echo "!.codex/instructions.md" >> "$tmp"
384-
echo ".github/copilot/*" >> "$tmp"
385-
echo "!.github/copilot/instructions.md" >> "$tmp"
378+
{
379+
echo "$line"
380+
echo ".cursor/*"
381+
echo "!.cursor/rules"
382+
echo ".codex/*"
383+
echo "!.codex/instructions.md"
384+
echo ".github/copilot/*"
385+
echo "!.github/copilot/instructions.md"
386+
} >> "$tmp"
386387
continue
387388
fi
388389

0 commit comments

Comments
 (0)