From b95e03052592af7b20ec086044b2a074808e2137 Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Thu, 13 Jul 2017 01:40:35 +0700 Subject: [PATCH] Distro: Put GoboLinux versioning below lsb_release lsb_release can handle GoboLinux properly, it seems. So the fallback detection can be used if lsb_release fails. --- neofetch | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/neofetch b/neofetch index f795747a..eaec39aa 100755 --- a/neofetch +++ b/neofetch @@ -71,12 +71,6 @@ get_distro() { *) distro="$(lsb_release -sd) on Chrome OS" ;; esac - elif [[ -f "/etc/GoboLinuxVersion" ]]; then - case "$distro_shorthand" in - "on" | "tiny") distro="GoboLinux" ;; - *) distro="GoboLinux $(< /etc/GoboLinuxVersion)" - esac - elif [[ -f "/etc/redstar-release" ]]; then case "$distro_shorthand" in "on" | "tiny") distro="Red Star OS" ;; @@ -91,6 +85,12 @@ get_distro() { esac distro="$(lsb_release $lsb_flags)" + elif [[ -f "/etc/GoboLinuxVersion" ]]; then + case "$distro_shorthand" in + "on" | "tiny") distro="GoboLinux" ;; + *) distro="GoboLinux $(< /etc/GoboLinuxVersion)" + esac + elif type -p guix >/dev/null; then case "$distro_shorthand" in "on" | "tiny") distro="GuixSD" ;;