"ubuntu-drivers" uses different separators when passing the "--recommended" flag, so the current split(",") breaks when more than one package name is being returned. This PR adjusts the code so that multi-package and multi-line output can both be parsed correctly.
Follow-up to #320, based on discussion here https://github.com/elementary/os/issues/686#issuecomment-1710730849
"ubuntu-drivers" uses different separators when passing the "--recommended" flag, so the current
split(",")
breaks when more than one package name is being returned. This PR adjusts the code so that multi-package and multi-line output can both be parsed correctly.