gpu: Fix windows issue. See: #1759

This commit is contained in:
Dylan Araps 2021-06-11 07:03:16 +00:00
parent 1c954ec556
commit 06b1c77bb8

View file

@ -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)
;; ;;