From 778a9150cdcd15216e0c1c6d7e1e3843cf455546 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Thu, 9 Apr 2026 22:02:52 -0500 Subject: feat: default to no-color output, add --color flag to enable Keeps logs and SSH output clean. Use archangel --color for colored output. --- installer/lib/common.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'installer/lib/common.sh') diff --git a/installer/lib/common.sh b/installer/lib/common.sh index 0f02e37..4acd7b9 100644 --- a/installer/lib/common.sh +++ b/installer/lib/common.sh @@ -6,22 +6,22 @@ # Output Functions ############################# -# Colors (optional, gracefully degrade if not supported) -if [[ -t 1 ]]; then +# No color by default — use --color flag to enable +RED='' +GREEN='' +YELLOW='' +BLUE='' +BOLD='' +NC='' + +enable_color() { RED='\033[0;31m' GREEN='\033[0;32m' YELLOW='\033[0;33m' BLUE='\033[0;34m' BOLD='\033[1m' - NC='\033[0m' # No Color -else - RED='' - GREEN='' - YELLOW='' - BLUE='' - BOLD='' - NC='' -fi + NC='\033[0m' +} info() { echo -e "${GREEN}[INFO]${NC} $1"; } warn() { echo -e "${YELLOW}[WARN]${NC} $1"; } -- cgit v1.2.3