Skip to content

Commit

Permalink
[PR] #348 from MingcongBai: fix(neofetch): list all Intel GPUs as det…
Browse files Browse the repository at this point in the history
…ected
  • Loading branch information
catumin authored Sep 7, 2024
2 parents a65a229 + 3866ad0 commit 9636c98
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions neofetch
Original file line number Diff line number Diff line change
Expand Up @@ -3429,15 +3429,6 @@ get_gpu() {

IFS=$'\n' read -d "" -ra gpus <<< "$gpu_cmd"

# Remove duplicate Intel Graphics outputs.
# This fixes cases where the outputs are both
# Intel but not entirely identical.
#
# Checking the first two array elements should
# be safe since there won't be 2 intel outputs if
# there's a dedicated GPU in play.
[[ "${gpus[0]}" == *Intel* && "${gpus[1]}" == *Intel* ]] && unset -v "gpus[0]"

for gpu in "${gpus[@]}"; do
# GPU shorthand tests.
[[ "$gpu_type" == "dedicated" && "$gpu" == *Intel* ]] || \
Expand Down

0 comments on commit 9636c98

Please sign in to comment.