From b20efa6ebe6725d3feff812f3e08130fa40e05bc Mon Sep 17 00:00:00 2001 From: leo Date: Sun, 19 Oct 2025 18:57:41 +0200 Subject: [PATCH] fix script by jonas --- .scripts/precheck.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.scripts/precheck.sh b/.scripts/precheck.sh index 093fd9d..ba1ac7b 100755 --- a/.scripts/precheck.sh +++ b/.scripts/precheck.sh @@ -5,23 +5,23 @@ RED='\033[31m' GRE='\033[32m' YEL='\033[33m' BLU='\033[34m' -RST='\033[0m' +NC='\033[0m' die() { - echo -e "${RED}✖ ${1}${RST}" >&2 + echo -e "${RED}✖ ${1}${NC}" >&2 exit 1 } info() { - echo -e "• ${1}${RST}" + echo -e "• ${1}${NC}" } ok() { - echo -e "${GRE}✔ ${1}${RST}" + echo -e "${GRE}✔ ${1}${NC}" } warn() { - echo -e "${YEL}▲ ${1}${RST}" + echo -e "${YEL}▲ ${1}${NC}" } info "Eseguo precheck…" @@ -97,7 +97,7 @@ GIT_NAME="$(git config --get user.name || true)" if [[ "$GIT_NAME" != "$CONTENT" ]]; then die "git user.name non corrisponde al tuo nome impostato in .scripts/name. Assicurati che sia l'username che usi per accedere a git.latentspace.cloud" fi -ok "git user.name: \t$BLU${GIT_NAME}$RST" +ok "git user.name: \t$BLU${GIT_NAME}$NC" # git mail GIT_EMAIL="$(git config --get user.email || true)" @@ -111,6 +111,6 @@ USER_PART="${GIT_EMAIL%@latentspace.cloud}" if [[ "$USER_PART" != "$CONTENT" ]]; then die "git user.email non corrisponde al tuo nome impostato in .scripts/name. Assicurati che sia $YEL@latentspace.cloud$RED, dove$YEL $RED è il nome che usi per autenticarti su git.latentspace.cloud." fi -ok "git user.email: \t$BLU${GIT_EMAIL}$RST" +ok "git user.email: \t$BLU${GIT_EMAIL}$NC" ok "Precheck completato."