From 4f15cb7208cb6ad07aed45143e8e4fdb280b2e67 Mon Sep 17 00:00:00 2001 From: zcake Date: Sun, 7 Mar 2021 23:39:50 +0800 Subject: [PATCH] fix uwufetch broken on debian --- uwufetch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uwufetch.c b/uwufetch.c index ecdd19e..43a8e05 100644 --- a/uwufetch.c +++ b/uwufetch.c @@ -112,7 +112,7 @@ void get_info() { // get all necessary info memmove(&shell[0], &shell[5], 16); // os version - FILE *fos_rel = popen("cat /etc/os-release | grep ID= | cut -d '=' -f2 2> /dev/null", "r"); + FILE *fos_rel = popen("cat /etc/os-release | awk '/^ID=/' | awk -F '=' '{print $2}' 2> /dev/null", "r"); fscanf(fos_rel,"%[^\n]", version_name); fclose(fos_rel);