Commit e510b763 authored by miner1's avatar miner1

Address #30

Fix version check on old version of Ubuntu (12.04)
parent 0183f3ee
...@@ -79,7 +79,7 @@ fi ...@@ -79,7 +79,7 @@ fi
echo "Detected nvidia driver version: $driver_version" 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 "Patch for this ($driver_version) nvidia driver not found." 1>&2
echo "Available patches for: " 1>&2 echo "Available patches for: " 1>&2
for drv in "${!patch_list[@]}"; do for drv in "${!patch_list[@]}"; do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment