From 1f2493aae6faa0f1da99d68c8a7dc69c206439b4 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Fri, 12 Nov 2021 13:46:45 +0100 Subject: [PATCH] fix if statements --- installGlobalScript.sh | 91 ++++++++++++++++++++++-------------------- 1 file changed, 48 insertions(+), 43 deletions(-) diff --git a/installGlobalScript.sh b/installGlobalScript.sh index ee506b0..7c63363 100644 --- a/installGlobalScript.sh +++ b/installGlobalScript.sh @@ -1,53 +1,58 @@ -git clone https://git.kennel.ml/Anri/myLinuxConfiguration.git -cd myLinuxConfiguration -# Install Fish -bash installFish.sh - -# Install gl4D -bash installgl4D.sh - -# Install Latex -sudo apt update && sudo apt install texlive-full -y - -# Install Java -bash installJava.sh - if grep "Ubuntu" /proc/version > /dev/null || grep "WSL" /proc/version > /dev/null; then - # Install Brave - bash installBrave.sh + git clone https://git.kennel.ml/Anri/myLinuxConfiguration.git + cd myLinuxConfiguration + # Install Fish + bash installFish.sh - # Uninstall Firefox - sudo snap remove firefox && rm -r $HOME/snap/firefox + # Install gl4D + bash installgl4D.sh - # Install Spotify - bash installSpotify.sh - - # Install Syncthing - bash installSyncthing.sh - - # Install Discord - wget -q --show-progress "https://discord.com/api/download?platform=linux&format=deb" -O discord.deb && sudo apt install ./discord.deb -y && rm discord.deb - - # Install Obsidian - bash installObsidian.sh - - # Install Flameshot - sudo apt update && sudo apt install flameshot -y - - # Install Parsec - bash installParsec.sh + # Install Latex + sudo apt update && sudo apt install texlive-full -y # Install Java bash installJava.sh - # Install OnlyOffice - bash installOnlyoffice.sh + if grep "Ubuntu" /proc/version > /dev/null; + then + # Install Brave + bash installBrave.sh - # Install EmojiPicker and its keyboard shortcut - bash installEmojiPicker.sh + # Uninstall Firefox + sudo snap remove firefox && rm -r $HOME/snap/firefox + + # Install Spotify + bash installSpotify.sh + + # Install Syncthing + bash installSyncthing.sh + + # Install Discord + wget -q --show-progress "https://discord.com/api/download?platform=linux&format=deb" -O discord.deb && sudo apt install ./discord.deb -y && rm discord.deb + + # Install Obsidian + bash installObsidian.sh + + # Install Flameshot + sudo apt update && sudo apt install flameshot -y + + # Install Parsec + bash installParsec.sh + + # Install Java + bash installJava.sh + + # Install OnlyOffice + bash installOnlyoffice.sh + + # Install EmojiPicker and its keyboard shortcut + bash installEmojiPicker.sh + fi + + # Supprime le repo + cd .. + rm -rf myLinuxConfiguration +else + echo "Your distribution isn't supported." fi - -# Supprime le repo -cd .. -rm -rf myLinuxConfiguration