From 399747a5e2a323f3c2f85653cb188d88d250dedc Mon Sep 17 00:00:00 2001 From: Dylan Date: Fri, 1 Apr 2016 18:01:24 +1100 Subject: [PATCH] Fix a distro detection bug when '/etc/*ease' doesn't use quotes --- neofetch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 5ea24241..c6bebab3 100755 --- a/neofetch +++ b/neofetch @@ -464,7 +464,8 @@ case "$os" in distro="$(crux)" else - distro="$(awk -F 'NAME="|"' '/^NAME=/ {printf $2}' /etc/*ease)" + distro="$(awk -F 'NAME=' '/^NAME=/ {printf $2}' /etc/*ease)" + distro=${distro//\"} # Workaround for distros that store the value differently. [ -z "$distro" ] && distro="$(awk -F 'TAILS_PRODUCT_NAME="|"' '/^TAILS_PRODUCT_NAME=/ {printf $2}' /etc/*ease)"