feat: Improve update script
This commit is contained in:
@@ -22,7 +22,7 @@ echo_bold() {
|
|||||||
|
|
||||||
# Affiche un message informatif stylisé sur la sortie d'erreur
|
# Affiche un message informatif stylisé sur la sortie d'erreur
|
||||||
echo_info() {
|
echo_info() {
|
||||||
printf >&2 "${BLUE} %s${RESET}\n" "$*"
|
printf >&2 "\n${BLUE} %s${RESET}\n\n" "$*"
|
||||||
}
|
}
|
||||||
|
|
||||||
echo_success() {
|
echo_success() {
|
||||||
@@ -63,6 +63,7 @@ run() {
|
|||||||
|
|
||||||
echo
|
echo
|
||||||
echo_bold "🚀 Mise à jour quotidienne"
|
echo_bold "🚀 Mise à jour quotidienne"
|
||||||
|
echo
|
||||||
|
|
||||||
# ----------------------------------------------------------------------
|
# ----------------------------------------------------------------------
|
||||||
# Debian / Ubuntu
|
# Debian / Ubuntu
|
||||||
@@ -166,31 +167,37 @@ fi
|
|||||||
|
|
||||||
echo
|
echo
|
||||||
echo_info "Récapitulatif"
|
echo_info "Récapitulatif"
|
||||||
|
echo
|
||||||
|
|
||||||
|
echo -n " ► "
|
||||||
case "$STATUS_APT" in
|
case "$STATUS_APT" in
|
||||||
success) echo_success "APT : réussi" ;;
|
success) echo_success "APT : réussi" ;;
|
||||||
failed) echo_failed "APT : échoué" ;;
|
failed) echo_failed "APT : échoué" ;;
|
||||||
not_detected) echo_skipped "APT : non détecté" ;;
|
not_detected) echo_skipped "APT : non détecté" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
echo -n " ► "
|
||||||
case "$STATUS_BREW" in
|
case "$STATUS_BREW" in
|
||||||
success) echo_success "Brew : réussi" ;;
|
success) echo_success "Brew : réussi" ;;
|
||||||
failed) echo_failed "Brew : échoué" ;;
|
failed) echo_failed "Brew : échoué" ;;
|
||||||
not_detected) echo_skipped "Brew : non détecté" ;;
|
not_detected) echo_skipped "Brew : non détecté" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
echo -n " ► "
|
||||||
case "$STATUS_CHEZMOI" in
|
case "$STATUS_CHEZMOI" in
|
||||||
success) echo_success "chezmoi : réussi" ;;
|
success) echo_success "chezmoi : réussi" ;;
|
||||||
failed) echo_failed "chezmoi : échoué" ;;
|
failed) echo_failed "chezmoi : échoué" ;;
|
||||||
not_detected) echo_skipped "chezmoi : non détecté" ;;
|
not_detected) echo_skipped "chezmoi : non détecté" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
echo -n " ► "
|
||||||
case "$STATUS_MISE" in
|
case "$STATUS_MISE" in
|
||||||
success) echo_success "mise : réussi" ;;
|
success) echo_success "mise : réussi" ;;
|
||||||
failed) echo_failed "mise : échoué" ;;
|
failed) echo_failed "mise : échoué" ;;
|
||||||
not_detected) echo_skipped "mise : non détecté" ;;
|
not_detected) echo_skipped "mise : non détecté" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
echo -n " ► "
|
||||||
case "$STATUS_NEOVIM" in
|
case "$STATUS_NEOVIM" in
|
||||||
success) echo_success "Neovim : réussi" ;;
|
success) echo_success "Neovim : réussi" ;;
|
||||||
failed) echo_failed "Neovim : échoué" ;;
|
failed) echo_failed "Neovim : échoué" ;;
|
||||||
|
|||||||
Reference in New Issue
Block a user