From 20e93689b6863b43b97e198316709b3002d6889c Mon Sep 17 00:00:00 2001 From: Bailey Kasin <31324979+BKasin@users.noreply.github.com> Date: Fri, 29 Sep 2023 11:32:21 -0700 Subject: [PATCH] [F] Do not read debian_version on Ubuntu Signed-off-by: Bailey Kasin --- neofetch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index f164ef56..b1f72c3d 100755 --- a/neofetch +++ b/neofetch @@ -1170,7 +1170,8 @@ 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 - if [[ -f /etc/debian_version ]]; then + # So if that file exists, and we are not *buntu, build name from there + if [[ -f /etc/debian_version ]] && [[ $distro_shorthand != *"buntu"* ]]; then . /etc/os-release case $distro_shorthand in on) distro="${NAME}" ;;