mirror of
https://github.com/hykilpikonna/hyfetch.git
synced 2026-09-13 19:37:51 -05:00
[F] Fix debian version on ubuntu #195
This commit is contained in:
2
neofetch
2
neofetch
@@ -1176,7 +1176,7 @@ get_distro() {
|
||||
elif type -p lsb_release >/dev/null; then
|
||||
# Debian does not include .x versions in /etc/os-version, but does in debian_version
|
||||
# So if that file exists, and we are not *buntu, build name from there
|
||||
if [[ -f /etc/debian_version ]] && [[ $distro != *"buntu"* ]]; then
|
||||
if [[ -f /etc/debian_version ]] && [[ $(lsb_release -si) != *"buntu"* ]]; then
|
||||
. /etc/os-release
|
||||
case $distro_shorthand in
|
||||
on) distro="${NAME}" ;;
|
||||
|
||||
Reference in New Issue
Block a user