revert fedora cuda version check

This commit is contained in:
Bruce MacDonald 2023-09-27 15:12:29 -04:00
parent a2b210130f
commit 958a5a8184

View file

@ -222,7 +222,7 @@ if ! lsmod | grep -q nvidia; then
*) exit ;;
esac
NVIDIA_CUDA_VERSION=$($SUDO dkms status | awk -F: '/nvidia|added/ { print $1 }')
NVIDIA_CUDA_VERSION=$($SUDO dkms status | awk -F: '/added/ { print $1 }')
if [ -n "$NVIDIA_CUDA_VERSION" ]; then
$SUDO dkms install $NVIDIA_CUDA_VERSION
fi