neofetch: Fix windows detection

parent aab631c7
...@@ -1102,7 +1102,7 @@ get_distro() { ...@@ -1102,7 +1102,7 @@ get_distro() {
fi fi
if [[ $(< /proc/version) == *Microsoft* || $kernel_version == *Microsoft* ]]; then if [[ $(< /proc/version) == *Microsoft* || $kernel_version == *Microsoft* ]]; then
windows_version=$(wmic os get Version) windows_version=$(wmic.exe os get Version)
windows_version=$(trim "${windows_version/Version}") windows_version=$(trim "${windows_version/Version}")
case $distro_shorthand in case $distro_shorthand in
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment