neofetch: Fix windows detection

This commit is contained in:
Dylan Araps 2021-12-06 06:36:44 +02:00
parent aab631c7dd
commit 7b1f0c275e
No known key found for this signature in database
GPG key ID: 13295DAC2CF13B5C

View file

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