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;
then
git clone -c http.sslverify=false https://git.kennel.ml/Anri/myLinuxConfiguration.git
cd myLinuxConfiguration
# Update of APT
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
sudo apt upgrade -y
sudo apt autoremove -y