From 743b72d04eb62e4e4889da17cd823ed08152ced4 Mon Sep 17 00:00:00 2001 From: TheDarkBug Date: Sat, 8 May 2021 14:38:43 +0200 Subject: [PATCH] Replaced cut with awk, for better compatibility (at least in theory) --- uwufetch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uwufetch.c b/uwufetch.c index 47ad649..dbcbad9 100644 --- a/uwufetch.c +++ b/uwufetch.c @@ -523,7 +523,7 @@ void get_info() #ifdef __CYGWIN__ gpu = popen("wmic PATH Win32_VideoController GET Name | sed -n 2p", "r"); #else - gpu = popen("lspci -mm 2> /dev/null | grep \"VGA\" | cut -f 4,6 -d '\"' -d \" \" | sed \"s/ Controller.*//\"", "r"); + gpu = popen("lspci -mm 2> /dev/null | grep \"VGA\" | awk -F '\"' '{print $4 $5 $6}'", "r"); #endif #else gpu = popen("system_profiler SPDisplaysDataType | awk -F ': ' '/Chipset Model: /{ print $2 }'", "r");