make it work for distros with double quotes

This commit is contained in:
Joshix 2021-07-23 13:40:44 +02:00
parent 79d23b0663
commit 37974d9bac

View file

@ -397,7 +397,7 @@ void get_info()
if (iscygwin == 0)
{
while (fgets(line, sizeof(line), os_release))
if (sscanf(line, "\nID=%s", version_name))
if (sscanf(line, "\nID=\"%s\"", version_name) || sscanf(line, "\nID=%s", version_name))
break;
if (host_model_info)
{