FIX: Add error handling to standalone domain discovery and remove color codes
FIXES: 1. Added error handling (|| true) to get_standalone_user_domains() - Prevents script crash with set -eo pipefail on standalone servers - Function now always succeeds even if find fails - Prevents tmux session crashes 2. Removed all ANSI color codes from launcher output - Color codes were showing as raw \033[0;36m instead of rendering - Simplified output without color variables - Better compatibility with different terminal types - Cleaner output on all systems Changes: - lib/user-manager.sh: Added || true to prevent failures - launcher.sh: Removed , , , etc. from output - show_banner(): Removed color codes - show_system_overview(): Removed color codes - show_main_menu(): Removed color codes Impact: - Standalone servers no longer crash when building reference database - Output is clean and readable on all terminal types - Detection/database building now completes successfully Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -331,7 +331,7 @@ get_standalone_user_domains() {
|
||||
|
||||
find "$home_dir" -maxdepth 2 \( -name "public_html" -o -name "html" \) -type d 2>/dev/null | \
|
||||
sed "s|${home_dir}/||; s|/public_html$||; s|/html$||" | \
|
||||
grep -v "^$" | sort -u
|
||||
grep -v "^$" | sort -u || true
|
||||
}
|
||||
|
||||
#############################################################################
|
||||
|
||||
Reference in New Issue
Block a user