gpu: Fix windows issue. See: #1759
This commit is contained in:
parent
1c954ec556
commit
06b1c77bb8
1 changed files with 7 additions and 5 deletions
12
neofetch
12
neofetch
|
@ -2561,12 +2561,14 @@ get_gpu() {
|
||||||
while read -r line; do
|
while read -r line; do
|
||||||
line=$(trim "$line")
|
line=$(trim "$line")
|
||||||
|
|
||||||
[[ -z $win_gpu ]] || [[ -z "$line" ]] && {
|
case $line in
|
||||||
win_gpu=1
|
*Caption*|'')
|
||||||
continue
|
continue
|
||||||
}
|
|
||||||
|
|
||||||
prin "${subtitle:+${subtitle}${gpu_name}}" "$line"
|
*)
|
||||||
|
prin "${subtitle:+${subtitle}${gpu_name}}" "$line"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
done < <(wmic path Win32_VideoController get caption)
|
done < <(wmic path Win32_VideoController get caption)
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue