make it work for distros with double quotes
This commit is contained in:
parent
79d23b0663
commit
37974d9bac
1 changed files with 1 additions and 1 deletions
|
@ -397,7 +397,7 @@ void get_info()
|
||||||
if (iscygwin == 0)
|
if (iscygwin == 0)
|
||||||
{
|
{
|
||||||
while (fgets(line, sizeof(line), os_release))
|
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;
|
break;
|
||||||
if (host_model_info)
|
if (host_model_info)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue