Actualiser Inject-USR-Repo.bash
This commit is contained in:
parent
cd6cb9296a
commit
6ef706e055
1 changed files with 10 additions and 4 deletions
|
@ -17,6 +17,10 @@ fi
|
||||||
|
|
||||||
# ========= DEPLOY =========
|
# ========= DEPLOY =========
|
||||||
## INSTALL GIT
|
## INSTALL GIT
|
||||||
|
if command -v git &> /dev/null; then
|
||||||
|
echo "Git est déjà installé : $(git --version)"
|
||||||
|
return
|
||||||
|
else
|
||||||
echo "Détection du système..."
|
echo "Détection du système..."
|
||||||
|
|
||||||
if command -v rpm-ostree &> /dev/null; then
|
if command -v rpm-ostree &> /dev/null; then
|
||||||
|
@ -37,9 +41,11 @@ echo "Détection du système..."
|
||||||
echo "Distribution non prise en charge"
|
echo "Distribution non prise en charge"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
## INJECT REPO
|
## INJECT REPO
|
||||||
git clone $Repolink /usr/local/bin
|
sudo chmod +x
|
||||||
chmod -v +x /usr/local/bin/*
|
sudo git clone $Repolink /usr/local/bin
|
||||||
ls /usr/local/bin
|
sudo chmod -v +x /usr/local/bin/*
|
||||||
|
sudo ls /usr/local/bin
|
||||||
# ==========================
|
# ==========================
|
Loading…
Add table
Reference in a new issue