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.
This commit is contained in:
parent
20185e51a6
commit
b95e030525
1 changed files with 6 additions and 6 deletions
12
neofetch
12
neofetch
|
@ -71,12 +71,6 @@ get_distro() {
|
||||||
*) distro="$(lsb_release -sd) on Chrome OS" ;;
|
*) distro="$(lsb_release -sd) on Chrome OS" ;;
|
||||||
esac
|
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
|
elif [[ -f "/etc/redstar-release" ]]; then
|
||||||
case "$distro_shorthand" in
|
case "$distro_shorthand" in
|
||||||
"on" | "tiny") distro="Red Star OS" ;;
|
"on" | "tiny") distro="Red Star OS" ;;
|
||||||
|
@ -91,6 +85,12 @@ get_distro() {
|
||||||
esac
|
esac
|
||||||
distro="$(lsb_release $lsb_flags)"
|
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
|
elif type -p guix >/dev/null; then
|
||||||
case "$distro_shorthand" in
|
case "$distro_shorthand" in
|
||||||
"on" | "tiny") distro="GuixSD" ;;
|
"on" | "tiny") distro="GuixSD" ;;
|
||||||
|
|
Loading…
Reference in a new issue