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