fix script by jonas
This commit is contained in:
parent
f7b1d57010
commit
b20efa6ebe
1 changed files with 7 additions and 7 deletions
|
|
@ -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."
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue