[PR] dylanaraps/neofetch#2128 from TheRealOne78 - Repair version for open-kernel NVIDIA version driver (LINUX)

Upstream PR: https://github.com/dylanaraps/neofetch/pull/2128
Thanks to @TheRealOne78

Co-authored-by: TheRealOne78 <bajcsielias78@gmail.com>
This commit is contained in:
Azalea (on HyDEV-Daisy) 2022-07-30 18:15:36 -04:00
commit beafa6a98f

View file

@ -3984,8 +3984,7 @@ get_gpu_driver() {
gpu_driver="${gpu_driver%, }"
if [[ "$gpu_driver" == *"nvidia"* ]]; then
gpu_driver="$(< /proc/driver/nvidia/version)"
gpu_driver="${gpu_driver/*Module }"
gpu_driver="$(< /sys/module/nvidia/version)"
gpu_driver="NVIDIA ${gpu_driver/ *}"
fi
;;