Merge pull request #5 from Hestia-Homes/feature/hestia-skills-instlaled

error in setup
This commit is contained in:
Jun-te Kim 2026-05-13 17:01:36 +01:00 committed by GitHub
commit 677a0add9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -95,7 +95,11 @@ cat "$GROUPS_FILE"
# --- install (globally, grouped by source) -------------------------------------
echo "==> Installing skills globally (~/.claude)"
while IFS=$'\t' read -r SOURCE SKILLS; do
# Read plan from fd 3 and redirect npx stdin to /dev/null. The skills CLI reads
# stdin even with --yes; without these guards it would consume the remaining
# lines of GROUPS_FILE and the loop would only run once (silently dropping
# every source after the first).
while IFS=$'\t' read -r SOURCE SKILLS <&3; do
[[ -z "$SOURCE" ]] && continue
echo "==> $SOURCE :: $SKILLS"
# The skills CLI expects --skill repeated per name, not a comma-joined string.
@ -110,8 +114,8 @@ while IFS=$'\t' read -r SOURCE SKILLS; do
--agent "$AGENT_TARGET" \
--copy \
--global \
--yes
done < "$GROUPS_FILE"
--yes < /dev/null
done 3< "$GROUPS_FILE"
echo "==> Done. Log: $LOG_FILE"
cat <<'EOF'