mirror of
https://github.com/keylase/nvidia-patch.git
synced 2025-01-09 22:26:58 +00:00
Update patch.sh
Done.
This commit is contained in:
parent
1000312b62
commit
8e05297988
2
patch.sh
2
patch.sh
@ -75,7 +75,7 @@ declare -A object_list=(
|
|||||||
|
|
||||||
NVIDIA_SMI="$(which nvidia-smi)"
|
NVIDIA_SMI="$(which nvidia-smi)"
|
||||||
|
|
||||||
if ! driver_version=$($NVIDIA_SMI --query-gpu=driver_version --format=csv,noheader,nounits | head -n 1) ; then
|
if ! driver_version=$("$NVIDIA_SMI" --query-gpu=driver_version --format=csv,noheader,nounits | head -n 1) ; then
|
||||||
echo 'Something went wrong. Check nvidia driver'
|
echo 'Something went wrong. Check nvidia driver'
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user