From a483c30c055f9786be4afc11c9efceac832a0979 Mon Sep 17 00:00:00 2001 From: rootiest Date: Fri, 12 Jun 2026 21:55:05 -0400 Subject: [PATCH] fix(agents-init): use fish-idiomatic command substitution in --plugins mode --- 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 44e7f93..b97336f 100644 --- a/functions/agents-init.fish +++ b/functions/agents-init.fish @@ -174,7 +174,7 @@ function agents-init --description 'scaffold AGENTS/ sub-repo with agent spec fi # If a real directory exists in docs/, move its contents to AGENTS/plugins/ if test -d "$docs_target"; and not test -L "$docs_target" - if test -n "$(ls -A $docs_target 2>/dev/null)" + if test -n (ls -A $docs_target 2>/dev/null) if not cp -r "$docs_target/." "$agents_target/" echo "$c_err""Error: could not move docs/$plug → AGENTS/plugins/$plug$c_reset" >&2 return 1