Created by: DerVerruckteFuchs
I tried using bash ./patch.sh to patch my Nvidia driver. I kept getting the ERROR: cannot detect driver directory error even though I had made sure I installed the Nvidia drivers correctly. After checking the file list for the libnvidia-encode1 package, I saw that the driver locations that get checked by patch.sh were missing the directory for the nvidia-current driver on Debian 9.
Adding the missing directory to the list of directories fixes this issue and the patch succeeds.