This repository has been archived on 2022-03-25. You can view files and clone it, but cannot push or open issues or pull requests.
manjaroConfiguration/update.sh

24 lines
847 B
Bash
Raw Normal View History

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