Distro: Use kernel_version in Windows detection

This commit is contained in:
Dylan Araps 2017-01-26 19:03:56 +11:00
parent cfdaac34f2
commit 502f4834fb
1 changed files with 1 additions and 1 deletions

View File

@ -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" ;;