Fix cases where wmic prints an equals sign

This commit is contained in:
Dylan 2016-02-01 08:22:47 +11:00
parent 86f7a8daee
commit e45664ae6d
1 changed files with 1 additions and 0 deletions

1
fetch
View File

@ -403,6 +403,7 @@ case "$os" in
"Windows")
distro="$(wmic os get Caption /value)"
distro=${distro/Caption}
distro=${distro/Caption\=}
distro=${distro//[[:space:]]/ }
distro=${distro// }
distro=${distro/Microsoft }