Commit 922c9cf9ca19f987f7b231279ab1c034a0788c5d

Thomas de Grivel 2023-08-12T17:18:23

fedora

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/rbpkg.rb b/lib/rbpkg.rb
index b0fb6e3..d12258d 100644
--- a/lib/rbpkg.rb
+++ b/lib/rbpkg.rb
@@ -394,7 +394,7 @@ EOF
     raise "uname failed" unless $?.success?
     if uname == "Linux"
       if File.exist?("/etc/fedora-release")
-        distrib = `cat /etc/fedora-release | cut -d \  -f 1`
+        distrib = `cat /etc/fedora-release | cut -d ' ' -f 1`.strip
       else
         distrib = `uname -a | grep -io -e Debian -e gentoo -e Ubuntu | sed -e 's|gentoo|Gentoo|'`.strip
       end