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'
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<tuonome>@latentspace.cloud$RED, dove$YEL <tuonome>$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."