fix script by jonas

This commit is contained in:
leo 2025-10-19 18:57:41 +02:00
parent f7b1d57010
commit b20efa6ebe

View file

@ -5,23 +5,23 @@ RED='\033[31m'
GRE='\033[32m' GRE='\033[32m'
YEL='\033[33m' YEL='\033[33m'
BLU='\033[34m' BLU='\033[34m'
RST='\033[0m' NC='\033[0m'
die() { die() {
echo -e "${RED}${1}${RST}" >&2 echo -e "${RED}${1}${NC}" >&2
exit 1 exit 1
} }
info() { info() {
echo -e "${1}${RST}" echo -e "${1}${NC}"
} }
ok() { ok() {
echo -e "${GRE}${1}${RST}" echo -e "${GRE}${1}${NC}"
} }
warn() { warn() {
echo -e "${YEL}${1}${RST}" echo -e "${YEL}${1}${NC}"
} }
info "Eseguo precheck…" info "Eseguo precheck…"
@ -97,7 +97,7 @@ GIT_NAME="$(git config --get user.name || true)"
if [[ "$GIT_NAME" != "$CONTENT" ]]; then 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" 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 fi
ok "git user.name: \t$BLU${GIT_NAME}$RST" ok "git user.name: \t$BLU${GIT_NAME}$NC"
# git mail # git mail
GIT_EMAIL="$(git config --get user.email || true)" GIT_EMAIL="$(git config --get user.email || true)"
@ -111,6 +111,6 @@ USER_PART="${GIT_EMAIL%@latentspace.cloud}"
if [[ "$USER_PART" != "$CONTENT" ]]; then if [[ "$USER_PART" != "$CONTENT" ]]; then
die "git user.email non corrisponde al tuo nome impostato in .scripts/name. Assicurati che sia $YEL<tuonome>@latentspace.cloud$RED, dove$YEL <tuonome>$RED è il nome che usi per autenticarti su git.latentspace.cloud." die "git user.email non corrisponde al tuo nome impostato in .scripts/name. Assicurati che sia $YEL<tuonome>@latentspace.cloud$RED, dove$YEL <tuonome>$RED è il nome che usi per autenticarti su git.latentspace.cloud."
fi fi
ok "git user.email: \t$BLU${GIT_EMAIL}$RST" ok "git user.email: \t$BLU${GIT_EMAIL}$NC"
ok "Precheck completato." ok "Precheck completato."