Update ubuntu-wine.sh

This commit is contained in:
HengiFettlich 2019-08-31 11:39:56 +02:00 committed by GitHub
parent a57c8a66ee
commit b43eec1b90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,20 +11,20 @@ sudo wget -nc https://dl.winehq.org/wine-builds/winehq.key
# add wine repo key # add wine repo key
sudo apt-key add winehq.key sudo apt-key add winehq.key
if ![ lsb_release | grep -q -e "18.04" -e "18.10" -e "19.04"] then if ![ lsb_release -a | grep -q -e "18.04" -e "18.10" -e "19.04"] then
echo "You need at least Ubuntu 18.04" echo "You need at least Ubuntu 18.04"
exit 1 exit 1
fi fi
if [ lsb_release | grep -q -e "18.04"]; then if [ lsb_release -a | grep -q -e "18.04"]; then
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main' sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
fi fi
if [ lsb_release | grep -q -e "18.10"]; then if [ lsb_release -a | grep -q -e "18.10"]; then
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ cosmic main' sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ cosmic main'
fi fi
if [ lsb_release | grep -q -e "19.04"]; then if [ lsb_release -a | grep -q -e "19.04"]; then
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ disco main' sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ disco main'
fi fi