Install git if not already installed
This commit is contained in:
parent
9a2a5a21de
commit
96f1e3bdd1
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||||
|
|
Reference in a new issue