install.sh reparatur

git problem
This commit is contained in:
kai
2026-04-24 12:01:40 +00:00
parent 67cced218f
commit 57872f0177
+12 -4
View File
@@ -8,17 +8,25 @@ echo "🚀 Starte Bootstrap Installation..."
GIT_REPO="ssh://git@192.168.178.5:2222/kai/workstation-config.git"
TARGET_DIR="$HOME/workstation-config"
# 📦 Repo klonen (oder aktualisieren)
# 🔍 Prüfen ob echtes Git-Repo
if [ -d "$TARGET_DIR/.git" ]; then
echo "🔄 Repo existiert update..."
echo "🔄 Gültiges Repo gefunden update..."
cd "$TARGET_DIR"
git pull
else
echo "📥 Klone Repo..."
echo "⚠️ Kein gültiges Repo gefunden"
# Falls Ordner existiert → löschen (wichtig!)
if [ -d "$TARGET_DIR" ]; then
echo "🧹 Entferne alten Ordner..."
rm -rf "$TARGET_DIR"
fi
echo "📥 Klone Repo neu..."
git clone "$GIT_REPO" "$TARGET_DIR"
fi
cd "$TARGET_DIR/temp-cleanup"
echo "⚙️ Starte eigentliche Installation..."
echo "⚙️ Starte Installation..."
bash install.sh