27 lines
846 B
Bash
27 lines
846 B
Bash
#!/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!"
|
|
exit 1
|
|
fi
|
|
|