Fix setup-desktop.sh: set -e entfernt, Unicode durch ASCII ersetzt

- set -e entfernt (bricht bei jedem Fehler ab)
- Unicode-Zeichen (✓ ⚠ ✗ ═) durch ASCII ersetzt ([OK] [!!] [FAIL] =)
  verhindert Encoding-Fehler bei curl|bash
- LANG=en_US.UTF-8 gesetzt
This commit is contained in:
rene 2026-03-10 19:28:16 +01:00
parent 4ff2dd88e4
commit 01bbd7fd14

View file

@ -5,23 +5,23 @@
# Verwendung: bash setup-desktop.sh # Verwendung: bash setup-desktop.sh
# Wird automatisch beim ersten Login gestartet (via Autostart) # Wird automatisch beim ersten Login gestartet (via Autostart)
set -e export LANG=en_US.UTF-8
FORGEJO="https://git.motocamp.de" FORGEJO="https://git.motocamp.de"
DOTFILES_REPO="$FORGEJO/rene/dotfiles-rene.git" DOTFILES_REPO="$FORGEJO/rene/dotfiles-rene.git"
# ── Farben ────────────────────────────────────────────────────────────── # ── Farben ──────────────────────────────────────────────────────────────
RED='\033[0;31m'; GREEN='\033[0;32m'; YELLOW='\033[1;33m'; NC='\033[0m' RED='\033[0;31m'; GREEN='\033[0;32m'; YELLOW='\033[1;33m'; NC='\033[0m'
ok() { echo -e "${GREEN} $*${NC}"; } ok() { echo -e "${GREEN}[OK] $*${NC}"; }
warn() { echo -e "${YELLOW} $*${NC}"; } warn() { echo -e "${YELLOW}[!!] $*${NC}"; }
err() { echo -e "${RED} $*${NC}"; exit 1; } fail() { echo -e "${RED}[FAIL] $*${NC}"; }
# ── Root-Check ─────────────────────────────────────────────────────────── # ── Root-Check ───────────────────────────────────────────────────────────
[[ $EUID -eq 0 ]] && err "Nicht als root ausführen!" [[ $EUID -eq 0 ]] && { fail "Nicht als root ausführen!"; exit 1; }
echo "" echo ""
echo "════════════════════════════════════════════" echo "============================================"
echo " setup-desktop.sh startet" echo " setup-desktop.sh startet"
echo "════════════════════════════════════════════" echo "============================================"
# ── 1. oh-my-zsh ──────────────────────────────────────────────────────── # ── 1. oh-my-zsh ────────────────────────────────────────────────────────
echo -e "\n=== 1/8 oh-my-zsh ===" echo -e "\n=== 1/8 oh-my-zsh ==="
@ -269,9 +269,9 @@ fi
# ── Zusammenfassung ────────────────────────────────────────────────────── # ── Zusammenfassung ──────────────────────────────────────────────────────
echo "" echo ""
echo "════════════════════════════════════════════" echo "============================================"
echo -e " ${GREEN}Desktop-Setup abgeschlossen!${NC}" echo -e " ${GREEN}Desktop-Setup abgeschlossen!${NC}"
echo "════════════════════════════════════════════" echo "============================================"
echo "" echo ""
warn "Noch manuell erledigen:" warn "Noch manuell erledigen:"
echo " 1. WireGuard-Config einspielen:" echo " 1. WireGuard-Config einspielen:"