Fix: check .git dir not just aziros dir
parent
65016869b7
commit
652056a63d
4
setup.sh
4
setup.sh
|
|
@ -99,11 +99,13 @@ sudo -u $USER git config \
|
|||
REPO="https://token:$GIT_TOKEN@git.nexlab.at/boban/aziros.git"
|
||||
|
||||
echo "→ Repository wird geklont..."
|
||||
if [ -d "/home/$USER/aziros" ]; then
|
||||
if [ -d "/home/$USER/aziros/.git" ]; then
|
||||
echo "→ Repo existiert — pull"
|
||||
sudo -u $USER git -C \
|
||||
/home/$USER/aziros pull origin main
|
||||
else
|
||||
# Verzeichnis löschen falls vorhanden aber kein Git:
|
||||
rm -rf /home/$USER/aziros
|
||||
sudo -u $USER git clone \
|
||||
$REPO /home/$USER/aziros
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in New Issue