diff --git a/installFish.sh b/installFish.sh index 029176a..727796a 100644 --- a/installFish.sh +++ b/installFish.sh @@ -65,10 +65,10 @@ fish -c "abbr untgz 'tar -xvzf'" fish -c "abbr - 'cd -'" if grep "WSL" /proc/version > /dev/null; # only for WSL then - fish -c "abbr bigupdate 'sudo apt update && sudo apt upgrade -y && sudo apt full-upgrade -y && sudo apt autoremove -y'" + fish -c "abbr bigupdate 'sudo apt update && sudo apt upgrade -y && sudo apt full-upgrade -y && sudo apt autoremove -y && wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/update.sh -O tmp.sh && bash tmp.sh; rm tmp.sh'" fish -c "abbr d 'explorer.exe .'" else # if regular distro (i.e. Ubuntu) - fish -c "abbr bigupdate 'sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y && sudo snap refresh'" + fish -c "abbr bigupdate 'sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y && sudo snap refresh && wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/update.sh -O tmp.sh && bash tmp.sh; rm tmp.sh'" fish -c "abbr d 'nautilus . -w &> /dev/null & disown'" fish -c "abbr spotify 'LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify &> /dev/null & disown'" fi diff --git a/installObsidian.sh b/installObsidian.sh index eaa0137..aa63235 100644 --- a/installObsidian.sh +++ b/installObsidian.sh @@ -14,4 +14,4 @@ sudo snap install --dangerous obsidian.snap # Removing package rm obsidian.snap -echo -e "\nObsidian installed! 🎉" +echo -e "\nObsidian installed or updated! 🎉" diff --git a/installOnlyOffice.sh b/installOnlyOffice.sh index 8be4094..bbfcfba 100644 --- a/installOnlyOffice.sh +++ b/installOnlyOffice.sh @@ -7,4 +7,4 @@ sudo apt install ./onlyoffice.deb -y # Removing package rm onlyoffice.deb -echo -e "\nOnlyOffice installed! 🎉" +echo -e "\nOnlyOffice installed or updated! 🎉" diff --git a/installParsec.sh b/installParsec.sh index 41241f4..5c157ad 100644 --- a/installParsec.sh +++ b/installParsec.sh @@ -7,4 +7,4 @@ sudo apt install ./parsec.deb -y # Removing package rm parsec.deb -echo -e "\nParsec installed! 🎉" +echo -e "\nParsec installed or updated! 🎉" diff --git a/update.sh b/update.sh new file mode 100644 index 0000000..18e9fae --- /dev/null +++ b/update.sh @@ -0,0 +1,23 @@ +if grep "Ubuntu" /proc/version > /dev/null || grep "WSL" /proc/version > /dev/null; +then + # Update Java + fish -c "sdk update" + fish -c "sdk upgrade" + echo -e "\nJava updated! 🎉" + + if grep "Ubuntu" /proc/version > /dev/null; + then + + # Update Obsidian + wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/installObsidian.sh -O tmp.sh && bash tmp.sh; rm tmp.sh + + # Update OnlyOffice + wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/installOnlyOffice.sh -O tmp.sh && bash tmp.sh; rm tmp.sh + + # Update Parsec + wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/installParsec.sh -O tmp.sh && bash tmp.sh; rm tmp.sh + + fi +else + echo "Your distribution isn't supported." +fi