mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 09:08:38 +00:00
distro: Fixed file error
This commit is contained in:
2
neofetch
2
neofetch
@@ -860,7 +860,7 @@ get_distro() {
|
|||||||
# Chrome OS doesn't conform to the /etc/*-release standard.
|
# Chrome OS doesn't conform to the /etc/*-release standard.
|
||||||
# While the file is a series of variables they can't be sourced
|
# While the file is a series of variables they can't be sourced
|
||||||
# by the shell since the values aren't quoted.
|
# by the shell since the values aren't quoted.
|
||||||
elif [[ "$(< /etc/lsb-release)" == *CHROMEOS* ]]; then
|
elif [[ -f /etc/lsb-release && "$(< /etc/lsb-release)" == *CHROMEOS* ]]; then
|
||||||
distro="$(awk -F '=' '/NAME|VERSION/ {printf $2 " "}' /etc/lsb-release)"
|
distro="$(awk -F '=' '/NAME|VERSION/ {printf $2 " "}' /etc/lsb-release)"
|
||||||
|
|
||||||
elif [[ -f "/etc/os-release" || \
|
elif [[ -f "/etc/os-release" || \
|
||||||
|
Reference in New Issue
Block a user