From 3c5ac7d9ee46199897f93acbe3d0997b972c85da Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 2 Dec 2016 09:33:46 +1100 Subject: [PATCH] Distro: Cleanup --- neofetch | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 861d9fce..4e5a47e3 100755 --- a/neofetch +++ b/neofetch @@ -44,8 +44,7 @@ get_distro() { case "$os" in "Linux" | "GNU") - if grep -q -F 'Microsoft' /proc/version || \ - grep -q -F 'Microsoft' /proc/sys/kernel/osrelease; then + if [[ "$(< /proc/version)" =~ "Microsoft" || "$(< /proc/sys/kernel/osrelease)" =~ "Microsoft" ]]; then case "$distro_shorthand" in "on") distro="$(lsb_release -sir) [Windows 10]" ;; "tiny") distro="Windows 10" ;;