GPU: Don't remove all matches

This commit is contained in:
Dylan Araps 2016-12-22 11:26:52 +11:00
parent 57d14905bc
commit 32116ea67f
1 changed files with 6 additions and 6 deletions

View File

@ -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
}