install.sh - fix DNF 5 detection on all locales (#15325)

Signed-off-by: Raúl Blanco <rbr007.movil@gmail.com>
This commit is contained in:
Raúl Blanco 2025-03-28 12:04:49 +01:00 committed by GitHub
parent e9324236e8
commit a8c3490614
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -521,7 +521,7 @@ main() {
dnf)
# DNF 5 has a different argument format; determine which one we have.
DNF_VERSION="3"
if dnf --version | grep -q '^dnf5 version'; then
if LANG=C.UTF-8 dnf --version | grep -q '^dnf5 version'; then
DNF_VERSION="5"
fi