Further reduce the size of wmic commands

This commit is contained in:
Dylan 2016-02-01 08:31:22 +11:00
parent 70e88727b6
commit 40366cb55b

7
fetch
View file

@ -402,8 +402,7 @@ case "$os" in
"Windows")
distro="$(wmic os get Caption /value)"
distro=${distro/Caption}
distro=${distro/'='}
distro=${distro/Caption'='}
distro=${distro//[[:space:]]/ }
distro=${distro// }
distro=${distro/Microsoft }
@ -900,8 +899,8 @@ getgpu () {
"Windows")
gpu=$(wmic path Win32_VideoController get caption)
gpu=${gpu/Caption }
gpu=$(wmic path Win32_VideoController get caption /value)
gpu=${gpu/Caption'='}
gpu=${gpu//[[:space:]]/ }
gpu=${gpu// }
;;