mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 17:09:21 +00:00
GPU: Don't remove all matches
This commit is contained in:
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
Block a user