Skip to content

Commit

Permalink
[F] Fix debian version on ubuntu #195
Browse files Browse the repository at this point in the history
  • Loading branch information
hykilpikonna committed Dec 19, 2023
1 parent b740ddc commit 5f266a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neofetch
Original file line number Diff line number Diff line change
Expand Up @@ -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}" ;;
Expand Down

0 comments on commit 5f266a3

Please sign in to comment.