[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:
commit
beafa6a98f
1 changed files with 1 additions and 2 deletions
3
neofetch
3
neofetch
|
@ -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
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue