From ca517d17683aa63bb75bec17ede4b98b5148ebc4 Mon Sep 17 00:00:00 2001 From: "rE-Bo0t.bx1" <54429050+r3bo0tbx1@users.noreply.github.com> Date: Fri, 5 Dec 2025 19:33:01 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20fix(gen-auth):=20improve=20color?= =?UTF-8?q?=20variable=20initialization=20and=20formatting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/gen-auth | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/gen-auth b/tools/gen-auth index ea4ada0..2d27c70 100644 --- a/tools/gen-auth +++ b/tools/gen-auth @@ -3,19 +3,19 @@ set -e -GREEN='\033[0;32m' -BLUE='\033[0;34m' -YELLOW='\033[1;33m' -CYAN='\033[0;36m' -BOLD='\033[1m' -NC='\033[0m' +GREEN=$(printf '\033[0;32m') +BLUE=$(printf '\033[0;34m') +YELLOW=$(printf '\033[1;33m') +CYAN=$(printf '\033[0;36m') +BOLD=$(printf '\033[1m') +NC=$(printf '\033[0m') PASS=$(head -c 24 /dev/urandom | base64 | tr -d '\n') HASH=$(tor --hash-password "$PASS") echo "" echo "${CYAN}╔════════════════════════════════════════════════════════════╗${NC}" -echo "${CYAN}║${NC} ${BOLD}Tor Control Port Authentication Generator${NC} ${CYAN}║${NC}" +echo "${CYAN}║${NC} ${BOLD}Tor Control Port Authentication Generator${NC} ${CYAN}║${NC}" echo "${CYAN}╚════════════════════════════════════════════════════════════╝${NC}" echo "" echo "${GREEN}✓${NC} Generated secure 32-character password"