[F] Do not read debian_version on Ubuntu
Signed-off-by: Bailey Kasin <baileykasin@gmail.com>
This commit is contained in:
parent
fca42c0390
commit
20e93689b6
1 changed files with 2 additions and 1 deletions
3
neofetch
3
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}" ;;
|
||||
|
|
Loading…
Reference in a new issue