Skip to content

Commit dba617f

Browse files
committed
fix(install): improve colored output and skills collision grouping
1 parent 908c9ed commit dba617f

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

install.sh

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -513,10 +513,10 @@ show_install_location_menu() {
513513
echo " Examples:"
514514
case "$PLATFORM" in
515515
Windows)
516-
echo " ${CYAN}C:/Users/username/my-agents${NC} or ${CYAN}~/my-agents${NC}"
516+
echo -e " ${CYAN}C:/Users/username/my-agents${NC} or ${CYAN}~/my-agents${NC}"
517517
;;
518518
*)
519-
echo " ${CYAN}/home/username/my-agents${NC} or ${CYAN}~/my-agents${NC}"
519+
echo -e " ${CYAN}/home/username/my-agents${NC} or ${CYAN}~/my-agents${NC}"
520520
;;
521521
esac
522522
echo ""
@@ -952,7 +952,7 @@ show_collision_report() {
952952
tools+=("$file")
953953
elif [[ $file == *"/plugin/"* ]]; then
954954
plugins+=("$file")
955-
elif [[ $file == *"/skill/"* ]]; then
955+
elif [[ $file == *"/skills/"* ]]; then
956956
skills+=("$file")
957957
elif [[ $file == *"/context/"* ]]; then
958958
contexts+=("$file")
@@ -1235,12 +1235,12 @@ show_post_install() {
12351235
# Check if env.example was installed
12361236
if [ -f "${INSTALL_DIR}/env.example" ] || [ -f "env.example" ]; then
12371237
echo "2. Copy env.example to .env and configure:"
1238-
echo " ${CYAN}cp env.example .env${NC}"
1238+
echo -e " ${CYAN}cp env.example .env${NC}"
12391239
echo "3. Start using OpenCode agents:"
12401240
else
12411241
echo "2. Start using OpenCode agents:"
12421242
fi
1243-
echo " ${CYAN}opencode${NC}"
1243+
echo -e " ${CYAN}opencode${NC}"
12441244
echo ""
12451245

12461246
# Show installation location info
@@ -1396,26 +1396,26 @@ main() {
13961396
echo ""
13971397
echo -e "${BOLD}Examples:${NC}"
13981398
echo ""
1399-
echo " ${CYAN}# Interactive mode (choose location and components)${NC}"
1399+
echo -e " ${CYAN}# Interactive mode (choose location and components)${NC}"
14001400
echo " $0"
14011401
echo ""
1402-
echo " ${CYAN}# Quick install with default location (.opencode/)${NC}"
1402+
echo -e " ${CYAN}# Quick install with default location (.opencode/)${NC}"
14031403
echo " $0 developer"
14041404
echo ""
1405-
echo " ${CYAN}# Install to global location (Linux/macOS)${NC}"
1405+
echo -e " ${CYAN}# Install to global location (Linux/macOS)${NC}"
14061406
echo " $0 developer --install-dir ~/.config/opencode"
14071407
echo ""
1408-
echo " ${CYAN}# Install to global location (Windows Git Bash)${NC}"
1408+
echo -e " ${CYAN}# Install to global location (Windows Git Bash)${NC}"
14091409
echo " $0 developer --install-dir ~/.config/opencode"
14101410
echo ""
1411-
echo " ${CYAN}# Install to custom location${NC}"
1411+
echo -e " ${CYAN}# Install to custom location${NC}"
14121412
echo " $0 essential --install-dir ~/my-agents"
14131413
echo ""
1414-
echo " ${CYAN}# Using environment variable${NC}"
1414+
echo -e " ${CYAN}# Using environment variable${NC}"
14151415
echo " export OPENCODE_INSTALL_DIR=~/.config/opencode"
14161416
echo " $0 developer"
14171417
echo ""
1418-
echo " ${CYAN}# Install from URL (non-interactive)${NC}"
1418+
echo -e " ${CYAN}# Install from URL (non-interactive)${NC}"
14191419
echo " curl -fsSL https://raw.githubusercontent.com/darrenhinde/OpenAgentsControl/main/install.sh | bash -s developer"
14201420
echo ""
14211421
echo -e "${BOLD}Platform Support:${NC}"

scripts/tests/test-installer-files.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -202,12 +202,12 @@ print_summary() {
202202
echo -e "${BOLD}Test Summary${NC}"
203203
echo -e "${BOLD}═══════════════════════════════════════════════════════════════${NC}"
204204
echo ""
205-
echo "Total files tested: ${CYAN}$((SUCCESS_COUNT + FAIL_COUNT))${NC}"
206-
echo "Files accessible: ${GREEN}${SUCCESS_COUNT}${NC}"
207-
echo "Files NOT FOUND: ${RED}${FAIL_COUNT}${NC}"
205+
echo -e "Total files tested: ${CYAN}$((SUCCESS_COUNT + FAIL_COUNT))${NC}"
206+
echo -e "Files accessible: ${GREEN}${SUCCESS_COUNT}${NC}"
207+
echo -e "Files NOT FOUND: ${RED}${FAIL_COUNT}${NC}"
208208

209209
if [ ${#SKIPPED_FILES[@]} -gt 0 ]; then
210-
echo "Skipped: ${YELLOW}${#SKIPPED_FILES[@]}${NC}"
210+
echo -e "Skipped: ${YELLOW}${#SKIPPED_FILES[@]}${NC}"
211211
fi
212212

213213
echo ""
@@ -223,7 +223,7 @@ print_summary() {
223223
echo " URL: ${RAW_URL}/${path}"
224224
done
225225
echo ""
226-
echo "${YELLOW}These files need to be:${NC}"
226+
echo -e "${YELLOW}These files need to be:${NC}"
227227
echo " 1. Added to the repository, OR"
228228
echo " 2. Removed from registry.json"
229229
echo ""

0 commit comments

Comments
 (0)