fix(agents-init): use fish-idiomatic command substitution in --plugins mode

This commit is contained in:
2026-06-12 21:55:05 -04:00
parent 3befc07887
commit a483c30c05
+1 -1
View File
@@ -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