From bc9fd232e4e7be29a78a52a662863de62d073acd Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 5 Jun 2018 12:19:18 +1000 Subject: [PATCH] distro: Fixed file error --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index fcddf346..a7e761e8 100755 --- a/neofetch +++ b/neofetch @@ -860,7 +860,7 @@ get_distro() { # Chrome OS doesn't conform to the /etc/*-release standard. # While the file is a series of variables they can't be sourced # 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)" elif [[ -f "/etc/os-release" || \