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
|
esac
|
||||||
|
|
||||||
if [[ "$gpu_brand" == "off" ]]; then
|
if [[ "$gpu_brand" == "off" ]]; then
|
||||||
gpu="${gpu//AMD }"
|
gpu="${gpu/AMD }"
|
||||||
gpu="${gpu//NVIDIA }"
|
gpu="${gpu/NVIDIA }"
|
||||||
gpu="${gpu//Intel }"
|
gpu="${gpu/Intel }"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
prin "GPU${index:-0}" "$gpu"
|
prin "GPU${index:-0}" "$gpu"
|
||||||
@@ -1080,9 +1080,9 @@ get_gpu() {
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
if [[ "$gpu_brand" == "off" ]]; then
|
if [[ "$gpu_brand" == "off" ]]; then
|
||||||
gpu="${gpu//AMD}"
|
gpu="${gpu/AMD}"
|
||||||
gpu="${gpu//NVIDIA}"
|
gpu="${gpu/NVIDIA}"
|
||||||
gpu="${gpu//Intel}"
|
gpu="${gpu/Intel}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user