mirror of
https://github.com/keylase/nvidia-patch.git
synced 2024-12-23 05:13:34 +00:00
Update patch.sh
This commit is contained in:
parent
d9e713648a
commit
ff838cf887
8
patch.sh
8
patch.sh
@ -288,15 +288,14 @@ patch_common () {
|
||||
if [[ "$manual_driver_version" ]]; then
|
||||
driver_version="$manual_driver_version"
|
||||
|
||||
echo "Using manually entered Nvidia driver version: $driver_version"
|
||||
echo "Using manually entered nvidia driver version: $driver_version"
|
||||
fi
|
||||
|
||||
else
|
||||
|
||||
NVIDIA_SMI="$(command -v nvidia-smi || true)"
|
||||
|
||||
if [[ ! "$NVIDIA_SMI" ]] ; then
|
||||
echo 'nvidia-smi utility not found. Probably driver is not installed.'
|
||||
exit 1
|
||||
|
||||
else
|
||||
cmd="$NVIDIA_SMI --query-gpu=driver_version --format=csv,noheader,nounits"
|
||||
driver_versions_list=$($cmd) || (
|
||||
@ -310,7 +309,6 @@ patch_common () {
|
||||
driver_version=$(echo "$driver_versions_list" | head -n 1)
|
||||
|
||||
echo "Detected nvidia driver version: $driver_version"
|
||||
|
||||
fi
|
||||
|
||||
if ! check_version_supported "$driver_version" ; then
|
||||
|
Loading…
Reference in New Issue
Block a user