From 5cc2aa1a1597966df5cdd83181c1b2133e4975e5 Mon Sep 17 00:00:00 2001 From: Jacksonzwang <20619818+Jacksonzwang@users.noreply.github.com> Date: Fri, 5 Feb 2021 16:50:14 +0800 Subject: [PATCH] Update CentOS Stream Support --- screenfetch-dev | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/screenfetch-dev b/screenfetch-dev index a868bb0..cd0a03d 100755 --- a/screenfetch-dev +++ b/screenfetch-dev @@ -833,6 +833,9 @@ detectdistro () { fi ;; esac + if [[ "${distro_detect}" =~ "CentOSStream" ]]; then + distro="CentOS Stream" + fi if [[ "${distro_detect}" =~ "RedHatEnterprise" ]]; then distro="Red Hat Enterprise Linux" fi @@ -1171,6 +1174,7 @@ detectdistro () { blag) distro="BLAG" ;; bunsenlabs) distro="BunsenLabs" ;; centos) distro="CentOS" ;; + centos*stream) distro="CentOS Stream" ;; chakra) distro="Chakra" ;; chapeau) distro="Chapeau" ;; chrome*|chromium*) distro="Chrome OS" ;; @@ -1378,7 +1382,7 @@ detectpkgs () { 'Guix System') pkgs=$(guix package --list-installed | wc -l) ;; 'ALDOS'|'Fedora'|'Fux'|'Korora'|'BLAG'|'Chapeau'|'openSUSE'|'SUSE Linux Enterprise'|'Red Hat Enterprise Linux'| \ - 'ROSA'|'Oracle Linux'|'Scientific Linux'|'EuroLinux'|'CentOS'|'Mandriva'|'Mandrake'|'Mageia'|'Mer'|'SailfishOS'|'PCLinuxOS'|'Viperr'|'Qubes OS'| \ + 'ROSA'|'Oracle Linux'|'Scientific Linux'|'EuroLinux'|'CentOS'|'CentOS Stream'|'Mandriva'|'Mandrake'|'Mageia'|'Mer'|'SailfishOS'|'PCLinuxOS'|'Viperr'|'Qubes OS'| \ 'Red Star OS'|'blackPanther OS'|'Amazon Linux') pkgs=$(rpm -qa | wc -l) ;; 'Void Linux') @@ -5103,7 +5107,7 @@ asciiText () { "${c1} .SSS....S.. %s") ;; - "CentOS") + "CentOS"|"CentOS Stream") if [[ "$no_color" != "1" ]]; then c1=$(getColor 'yellow') c2=$(getColor 'light green') @@ -6146,7 +6150,7 @@ infoDisplay () { "NetBSD"|"Amazon Linux"|"Proxmox VE") labelcolor=$(getColor 'orange') ;; - "CentOS") + "CentOS"|"CentOS Stream") labelcolor=$(getColor 'yellow') ;; "Hyperbola GNU/Linux-libre"|"PureOS"|*)