Skip to content

Commit b41f8f5

Browse files
committed
Fix installer success output formatting
Render colored success instructions correctly and show the ~/.husky data layout without raw ANSI escape sequences.
1 parent e514fe7 commit b41f8f5

1 file changed

Lines changed: 14 additions & 7 deletions

File tree

install.sh

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -464,27 +464,34 @@ print_success() {
464464
echo " Service port: $PORT"
465465
echo " Config file : $ENV_FILE"
466466
echo ""
467+
echo " Data layout:"
468+
echo -e " ${CYAN}$DATA_DIR/.env${NC} Runtime config"
469+
echo -e " ${CYAN}$DATA_DIR/config/${NC} MCP and other user config files"
470+
echo -e " ${CYAN}$DATA_DIR/skills/${NC} Installed and custom skills"
471+
echo -e " ${CYAN}$DATA_DIR/db/${NC} SQLite runtime state"
472+
echo -e " ${CYAN}$DATA_DIR/logs/${NC} Writable log directory"
473+
echo ""
467474
echo " Next steps:"
468475
echo ""
469476
echo " 1. Edit the minimal configuration:"
470-
echo " ${CYAN}vi $ENV_FILE${NC}"
477+
echo -e " ${CYAN}vi $ENV_FILE${NC}"
471478
echo " (Set OPENAI_API_KEY at minimum)"
472479
echo ""
473480
echo " 2. Start Husky:"
474481
if [ -f /etc/systemd/system/husky-agent.service ]; then
475-
echo " ${CYAN}sudo systemctl start husky-agent${NC}"
476-
echo " ${CYAN}sudo systemctl status husky-agent${NC}"
477-
echo " ${CYAN}journalctl -u husky-agent -f${NC}"
482+
echo -e " ${CYAN}sudo systemctl start husky-agent${NC}"
483+
echo -e " ${CYAN}sudo systemctl status husky-agent${NC}"
484+
echo -e " ${CYAN}journalctl -u husky-agent -f${NC}"
478485
else
479-
echo " ${CYAN}cd $INSTALL_DIR && bin/husky serve${NC}"
486+
echo -e " ${CYAN}cd $INSTALL_DIR && bin/husky serve${NC}"
480487
fi
481488
echo ""
482489
echo " 3. Verify the service:"
483-
echo " ${CYAN}curl http://localhost:$PORT/actuator/health${NC}"
490+
echo -e " ${CYAN}curl http://localhost:$PORT/actuator/health${NC}"
484491
echo " (Look for JSON containing \"status\":\"UP\")"
485492
echo ""
486493
echo " 4. Open the TUI from another terminal or your local machine:"
487-
echo " ${CYAN}husky tui --server ws://YOUR_VPS_IP:$PORT/api/tui${NC}"
494+
echo -e " ${CYAN}husky tui --server ws://YOUR_VPS_IP:$PORT/api/tui${NC}"
488495
echo ""
489496
if [ "$UPGRADE" = true ]; then
490497
echo " Upgrade log: $LOG_FILE"

0 commit comments

Comments
 (0)