So, the reason this happens is that the way we determine what to install is to actually install the drivers with "ubuntu-drivers autoinstall --package-list $1, which saves the list of INSTALLED packages into $1. Obviously, that doesn't work so well if you've already installed the packages manually, as "autoinstall" then installs nothing, and tells you as much.
So, we probably want to futz with this code a bit to actually sort out what *is* installed after an autoinstall, not only what we *just* installed.
So, the reason this happens is that the way we determine what to install is to actually install the drivers with "ubuntu-drivers autoinstall --package-list $1, which saves the list of INSTALLED packages into $1. Obviously, that doesn't work so well if you've already installed the packages manually, as "autoinstall" then installs nothing, and tells you as much.
So, we probably want to futz with this code a bit to actually sort out what *is* installed after an autoinstall, not only what we *just* installed.