Feat: Passt das Skript für Arch an.
This commit is contained in:
parent
861eb87522
commit
2b76159f7d
9
2_HyprlandInstall.sh
Executable file
9
2_HyprlandInstall.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Root-Rechte prüfen
|
||||
if [ "$(id -u)" -eq 0 ]; then
|
||||
echo "❌ Bitte nicht als root ausführen! Das Skript nutzt sudo, falls nötig."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
sh <(curl -L https://raw.githubusercontent.com/JaKooLit/Arch-Hyprland/main/auto-install.sh)
|
||||
@ -1,31 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Root-Rechte prüfen
|
||||
if [ "$(id -u)" -eq 0 ]; then
|
||||
echo "❌ Bitte nicht als root ausführen! Das Skript nutzt sudo, falls nötig."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Repository-Pfad definieren
|
||||
REPO_DIR="/tmp/Debian-Hyprland"
|
||||
|
||||
# Falls das Repository bereits existiert, überspringen
|
||||
if [ -d "$REPO_DIR" ]; then
|
||||
echo "ℹ️ Repository existiert bereits. Überspringe das klonen..."
|
||||
else
|
||||
echo "ℹ️ Klonen des Repositories..."
|
||||
git clone --depth=1 https://github.com/JaKooLit/Debian-Hyprland.git "$REPO_DIR" || { echo "Fehler beim Klonen!"; exit 1; }
|
||||
fi
|
||||
|
||||
# In das Verzeichnis wechseln
|
||||
cd "$REPO_DIR" || { echo "❌ Fehler: Konnte nicht in das Verzeichnis wechseln!"; exit 1; }
|
||||
|
||||
# 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!"
|
||||
exit 1
|
||||
fi
|
||||
Loading…
x
Reference in New Issue
Block a user