Feat: Passt die Debian 12 bookworm Install-Skripte für Tuxedo OS an.
This commit is contained in:
@@ -1,26 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Repository-Pfad definieren
|
||||
REPO_DIR="$HOME/Debian-Hyprland"
|
||||
|
||||
# Falls das Repository bereits existiert, überspringen
|
||||
if [ -d "$REPO_DIR" ]; then
|
||||
echo "Repository existiert bereits. Aktualisiere stattdessen..."
|
||||
cd "$REPO_DIR" || { echo "Fehler: Konnte nicht in das Verzeichnis wechseln!"; exit 1; }
|
||||
git pull
|
||||
else
|
||||
echo "Klonen des Repositories..."
|
||||
git clone --depth=1 https://github.com/JaKooLit/Debian-Hyprland.git "$REPO_DIR" || { echo "Fehler beim Klonen!"; exit 1; }
|
||||
cd "$REPO_DIR" || { echo "Fehler: Konnte nicht in das Verzeichnis wechseln!"; exit 1; }
|
||||
fi
|
||||
|
||||
# Sicherstellen, dass das Installationsskript existiert und ausführbar ist
|
||||
if [ -f "install.sh" ]; then
|
||||
chmod +x install.sh
|
||||
echo "Starte Installation..."
|
||||
./install.sh
|
||||
else
|
||||
echo "Fehler: install.sh nicht gefunden!"
|
||||
# Sicherstellen, dass das Skript **nicht** als root ausgeführt wird
|
||||
if [[ $EUID -eq 0 ]]; then
|
||||
echo "Bitte **nicht** als root oder mit sudo ausführen! Das Skript fordert sudo nur dort an, wo es benötigt wird."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
sudo apt remove -y tuxedoos-desktop
|
||||
|
||||
sh <(curl -L https://raw.githubusercontent.com/JaKooLit/Ubuntu-Hyprland/24.04/auto-install.sh)
|
||||
|
||||
Reference in New Issue
Block a user