Fix cases where wmic prints an equals sign
This commit is contained in:
parent
86f7a8daee
commit
e45664ae6d
1 changed files with 1 additions and 0 deletions
1
fetch
1
fetch
|
@ -403,6 +403,7 @@ case "$os" in
|
||||||
"Windows")
|
"Windows")
|
||||||
distro="$(wmic os get Caption /value)"
|
distro="$(wmic os get Caption /value)"
|
||||||
distro=${distro/Caption}
|
distro=${distro/Caption}
|
||||||
|
distro=${distro/Caption\=}
|
||||||
distro=${distro//[[:space:]]/ }
|
distro=${distro//[[:space:]]/ }
|
||||||
distro=${distro// }
|
distro=${distro// }
|
||||||
distro=${distro/Microsoft }
|
distro=${distro/Microsoft }
|
||||||
|
|
Loading…
Reference in a new issue