mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-03 16:51:29 +00:00
neofetch: Fix windows detection
This commit is contained in:
2
neofetch
2
neofetch
@@ -1102,7 +1102,7 @@ get_distro() {
|
||||
fi
|
||||
|
||||
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}")
|
||||
|
||||
case $distro_shorthand in
|
||||
|
Reference in New Issue
Block a user