From 9f7e57c3a8c9ac997e6863148cfe023debf9701e Mon Sep 17 00:00:00 2001 From: Georgiy Ignatov Date: Thu, 14 May 2020 13:07:45 +0300 Subject: [PATCH] fixup! Add more descriptive info about driver version detection failure #267 --- patch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patch.sh b/patch.sh index 0b11abb..edf2a37 100755 --- a/patch.sh +++ b/patch.sh @@ -187,7 +187,7 @@ patch_common () { driver_versions_list=$($cmd) ret_code=$? driver_version=$(echo "$driver_versions_list" | head -n 1) - if [ $ret_code -ne 0 ] && [ -nz driver_version ] ; then + if [[ $ret_code -ne 0 ]] ; then echo "Can not detect nvidia driver version." echo "CMD: \"$cmd\"" echo "Result: \"$driver_versions_list\""