From 37974d9bac1ffaa60ca0d043c6650199c98c3eef Mon Sep 17 00:00:00 2001 From: Joshix Date: Fri, 23 Jul 2021 13:40:44 +0200 Subject: [PATCH] make it work for distros with double quotes --- uwufetch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uwufetch.c b/uwufetch.c index 6df7a26..cfe0b4a 100644 --- a/uwufetch.c +++ b/uwufetch.c @@ -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) {