From e0fff44cce3719c5ffe82064a3d96b5d483e6138 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 1 Nov 2016 23:23:11 +1100 Subject: [PATCH] Distro: [Linux] Fallback only print first line --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index de657a3c..882394db 100755 --- a/neofetch +++ b/neofetch @@ -173,7 +173,7 @@ getdistro() { # Workarounds for distros that go against the os-release standard. [ -z "$(trim "$distro")" ] && distro="$(awk '/BLAG/ {print $1; exit}' /etc/*ease /usr/lib/*ease)" - [ -z "$(trim "$distro")" ] && distro="$(awk -F'=' '{print $2}' /etc/*ease /usr/lib/*ease)" + [ -z "$(trim "$distro")" ] && distro="$(awk -F'=' '{print $2; exit}' /etc/*ease /usr/lib/*ease)" fi distro="${distro//\"}" distro="${distro//\'}"