From 2b429b150757d74336167d6811e146c5f7e71205 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sat, 14 Aug 2021 03:25:47 +0200 Subject: [PATCH] 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. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 466415ac..3dfaeef5 100644 --- a/README.md +++ b/README.md @@ -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 ```