I am trying to write a script which works based on the knowledge that each Linux Mint release was based on a particular Ubuntu release.
However, I do not want to install Linux Mint to verify that, but instead let the users of the script test it, if they need it.
Can I rely on the presence of /etc/debian_version, though? I am doing this in order to detect Debian and its derivatives. It works reliably on Debian and Ubuntu, but does Linux Mint have this file?
Note: I am aware of lsb_release and I am using that in order to figure out more details later on. But the existence of /etc/debian_version is a way to make assumptions about certain things before even checking for and invoking lsb_release.
