Install git if not already installed

This commit is contained in:
Anri 2021-11-25 20:29:49 +01:00
parent 9a2a5a21de
commit 96f1e3bdd1

View file

@ -1,10 +1,13 @@
if grep "Ubuntu" /proc/version > /dev/null || grep "WSL" /proc/version > /dev/null; if grep "Ubuntu" /proc/version > /dev/null || grep "WSL" /proc/version > /dev/null;
then then
git clone -c http.sslverify=false https://git.kennel.ml/Anri/myLinuxConfiguration.git
cd myLinuxConfiguration
# Update of APT # Update of APT
sudo apt update sudo apt update
which git &> /dev/null || sudo apt install git -y # Install git if not already installed
git clone -c http.sslverify=false https://git.kennel.ml/Anri/myLinuxConfiguration.git
cd myLinuxConfiguration
# Upgrade and clean already installed packages # Upgrade and clean already installed packages
sudo apt upgrade -y sudo apt upgrade -y
sudo apt autoremove -y sudo apt autoremove -y