Fix version check on old version of Ubuntu (12.04)
This commit is contained in:
miner1 2019-01-12 16:48:54 +02:00
parent 0183f3ee6c
commit e510b763f7

View File

@ -79,7 +79,7 @@ fi
echo "Detected nvidia driver version: $driver_version"
if [[ ! -v "patch_list[$driver_version]" || ! -v "object_list[$driver_version]" ]]; then
if [[ ! "${patch_list[$driver_version]+isset}" || ! "${object_list[$driver_version]+isset}" ]]; then
echo "Patch for this ($driver_version) nvidia driver not found." 1>&2
echo "Available patches for: " 1>&2
for drv in "${!patch_list[@]}"; do