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/installMultiMC.sh

15 lines
440 B
Bash
Raw Normal View History

# On récupère le lien vers la dernière version de MultiMC
2021-12-01 11:46:38 +01:00
echo "Retrieve the last package..."
latest=$(wget -qO- https://multimc.org/ | grep "Debian/Ubuntu") # récupération depuis le site
pat='href="(.*)" ' # regex
[[ $latest =~ $pat ]] # utilisation du regex
2021-12-01 11:46:38 +01:00
# On télécharge le paquet
wget -q --show-progress -i ${BASH_REMATCH[1]} -O MultiMC.deb
2021-12-01 11:46:38 +01:00
sudo apt install ./MultiMC.deb -y
rm MultiMC.deb
echo ""
echo "MultiMC installed!"