fix(secubox): Fix ANSI color codes in help output

- Use printf to generate actual escape sequences instead of literal strings
- Fixes colors not rendering in 'secubox help' output
- POSIX sh heredoc doesn't interpret \033 escapes

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
CyberMind-FR 2026-03-11 10:32:47 +01:00
parent 9b58d6db38
commit 175dbbe953

View File

@ -7,13 +7,13 @@
SECUBOX_VERSION="0.9.0" SECUBOX_VERSION="0.9.0"
# Color output # Color output (using printf to generate actual escape sequences)
RED='\033[0;31m' RED=$(printf '\033[0;31m')
GREEN='\033[0;32m' GREEN=$(printf '\033[0;32m')
YELLOW='\033[1;33m' YELLOW=$(printf '\033[1;33m')
BLUE='\033[0;34m' BLUE=$(printf '\033[0;34m')
BOLD='\033[1m' BOLD=$(printf '\033[1m')
NC='\033[0m' # No Color NC=$(printf '\033[0m')
usage() { usage() {
cat <<EOF cat <<EOF