From b1b6226189f9d27d751e330a15449154602147be Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 1 Nov 2016 23:05:30 +1100 Subject: [PATCH] Distro: [Linux] Fix fallbacks not working --- neofetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 34d5ec04..e97a7296 100755 --- a/neofetch +++ b/neofetch @@ -172,8 +172,8 @@ getdistro() { esac # Workarounds for distros that go against the os-release standard. - [ -z "$distro" ] && distro="$(awk '/BLAG/ {print $1; exit}' /etc/*ease /usr/lib/*ease)" - [ -z "$distro" ] && distro="$(awk -F'=' '{print $2}' /etc/*ease /usr/lib/*ease)" + [ -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)" fi distro="${distro//\"}" distro="${distro//\'}"