Actualiser Inject-USR-Repo.bash

This commit is contained in:
Tyleo Dv. Delaware 2025-06-25 14:31:00 +02:00
parent cd6cb9296a
commit 6ef706e055

View file

@ -17,7 +17,11 @@ fi
# ========= DEPLOY =========
## INSTALL GIT
echo "Détection du système..."
if command -v git &> /dev/null; then
echo "Git est déjà installé : $(git --version)"
return
else
echo "Détection du système..."
if command -v rpm-ostree &> /dev/null; then
echo "Système basé sur RPM-OSTree détecté"
@ -37,9 +41,11 @@ echo "Détection du système..."
echo "Distribution non prise en charge"
exit 1
fi
fi
## INJECT REPO
git clone $Repolink /usr/local/bin
chmod -v +x /usr/local/bin/*
ls /usr/local/bin
sudo chmod +x
sudo git clone $Repolink /usr/local/bin
sudo chmod -v +x /usr/local/bin/*
sudo ls /usr/local/bin
# ==========================