Most distributions use systemd which has os-release as the file containing OS identification data. Therefore, I believe using the data it contains is a priority, then searching for other files can be a secondary task. In distributions like arch linux which contains another file called arch-release. a totally empty file that is there just to let programs know that the distribution is arch.
The existence of such files will cause problems such as the one mentioned in #17
Therefore, I believe giving priority to os-release before other files ending with "-release" is a good move to make the installation script work with a wider variety of distributions
Most distributions use systemd which has os-release as the file containing OS identification data. Therefore, I believe using the data it contains is a priority, then searching for other files can be a secondary task. In distributions like arch linux which contains another file called arch-release. a totally empty file that is there just to let programs know that the distribution is arch. The existence of such files will cause problems such as the one mentioned in #17 Therefore, I believe giving priority to os-release before other files ending with "-release" is a good move to make the installation script work with a wider variety of distributions