Also consider weird setups when downgrading Wine

Somehow some people manually add the repository to some list in
`/etc/apt/sources.list.d/` instead of following the instructions from
WineHQ's website, but they then also don't know their distro's codename.
This commit is contained in:
Robbert van der Helm
2021-08-14 03:25:47 +02:00
parent d8bc7637b4
commit 2b429b1507
+1 -1
View File
@@ -233,7 +233,7 @@ Wine. This can be done as follows:
```shell
version=6.4
codename=$(awk '/^deb https:\/\/dl\.winehq\.org/ { print $3 }' /etc/apt/sources.list)
codename=$(shopt -s nullglob; awk '/^deb https:\/\/dl\.winehq\.org/ { print $3; exit }' /etc/apt/sources.list /etc/apt/sources.list.d/*.list)
sudo apt install --install-recommends {winehq-staging,wine-staging,wine-staging-amd64,wine-staging-i386}=$version~$codename-1
```