GPU: Don't remove all matches
This commit is contained in:
parent
57d14905bc
commit
32116ea67f
12
neofetch
12
neofetch
|
@ -997,9 +997,9 @@ get_gpu() {
|
|||
esac
|
||||
|
||||
if [[ "$gpu_brand" == "off" ]]; then
|
||||
gpu="${gpu//AMD }"
|
||||
gpu="${gpu//NVIDIA }"
|
||||
gpu="${gpu//Intel }"
|
||||
gpu="${gpu/AMD }"
|
||||
gpu="${gpu/NVIDIA }"
|
||||
gpu="${gpu/Intel }"
|
||||
fi
|
||||
|
||||
prin "GPU${index:-0}" "$gpu"
|
||||
|
@ -1080,9 +1080,9 @@ get_gpu() {
|
|||
esac
|
||||
|
||||
if [[ "$gpu_brand" == "off" ]]; then
|
||||
gpu="${gpu//AMD}"
|
||||
gpu="${gpu//NVIDIA}"
|
||||
gpu="${gpu//Intel}"
|
||||
gpu="${gpu/AMD}"
|
||||
gpu="${gpu/NVIDIA}"
|
||||
gpu="${gpu/Intel}"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue