From d0854bf1e663f77a537c5fcccdd97577fa02b686 Mon Sep 17 00:00:00 2001 From: Michael Yang Date: Mon, 25 Sep 2023 12:57:21 -0700 Subject: [PATCH] fix dkms on debian --- scripts/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index 4cf5fd6d..c8ac0af9 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -204,7 +204,7 @@ if ! lsmod | grep -q nvidia; then debian|ubuntu) $SUDO apt-get -y install linux-headers-$KERNEL_RELEASE ;; esac - NVIDIA_CUDA_VERSION=$(dkms status | awk -F: '/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