Further reduce the size of wmic commands
This commit is contained in:
parent
70e88727b6
commit
40366cb55b
1 changed files with 3 additions and 4 deletions
7
fetch
7
fetch
|
@ -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// }
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue