Windows: OS now shows Windows edition (Windows 7 Ultimate, etc)
This commit is contained in:
30
fetch
30
fetch
@@ -401,31 +401,11 @@ case "$os" in
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
"Windows")
|
"Windows")
|
||||||
case "$(cmd /c ver)" in
|
distro="$(wmic os get Caption /value)"
|
||||||
*"XP"*)
|
distro=${distro/Caption}
|
||||||
distro="Windows XP"
|
distro=${distro//[[:space:]]/ }
|
||||||
;;
|
distro=${distro// }
|
||||||
|
distro=${distro/Microsoft }
|
||||||
*"7"*)
|
|
||||||
distro="Windows 7"
|
|
||||||
;;
|
|
||||||
|
|
||||||
*"8.1"*)
|
|
||||||
distro="Windows 8.1"
|
|
||||||
;;
|
|
||||||
|
|
||||||
*"8"*)
|
|
||||||
distro="Windows 8"
|
|
||||||
;;
|
|
||||||
|
|
||||||
*"10"*)
|
|
||||||
distro="Windows 10"
|
|
||||||
;;
|
|
||||||
|
|
||||||
*)
|
|
||||||
distro="Windows"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
|
|||||||
Reference in New Issue
Block a user