From 502f4834fb559cfeb858e09838baecae5df62b6f Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 26 Jan 2017 19:03:56 +1100 Subject: [PATCH] Distro: Use kernel_version in Windows detection --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index daf91564..8b8b8468 100755 --- a/neofetch +++ b/neofetch @@ -53,7 +53,7 @@ get_distro() { case "$os" in "Linux" | "BSD" | "MINIX") - if [[ "$(< /proc/version)" == *"Microsoft"* || "$(< /proc/sys/kernel/osrelease)" == *"Microsoft"* ]]; then + if [[ "$(< /proc/version)" == *"Microsoft"* || "$kernel_version" == *"Microsoft"* ]]; then case "$distro_shorthand" in "on") distro="$(lsb_release -sir) [Windows 10]" ;; "tiny") distro="Windows 10" ;;