From 69384f6427c36cacb2334730d492a95309a41527 Mon Sep 17 00:00:00 2001 From: rootiest Date: Fri, 12 Jun 2026 23:51:30 -0400 Subject: [PATCH] fix(agents-init): use command cp -rn to bypass interactive wrapper and skip existing files --- functions/agents-init.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/agents-init.fish b/functions/agents-init.fish index 2f3b467..6dd12e4 100644 --- a/functions/agents-init.fish +++ b/functions/agents-init.fish @@ -243,7 +243,7 @@ function agents-init --description 'scaffold AGENTS/ sub-repo with agent spec fi if test -d "$docs_target"; and not test -L "$docs_target" set -l contents (ls -A "$docs_target" 2>/dev/null) if test (count $contents) -gt 0 - if not cp -r "$docs_target/." "$agents_target/" + if not command cp -rn "$docs_target/." "$agents_target/" echo "$c_err""Error: could not copy docs/$plug → AGENTS/plugins/$plug$c_reset" >&2 return 1 end