From 7c5b1ca755a67cfbe297ea0b4856ae1f9591251f Mon Sep 17 00:00:00 2001 From: GaugeK Date: Sun, 9 Aug 2020 01:56:06 +1000 Subject: [PATCH] Fix long CPU name on AMD --- posixfetch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/posixfetch b/posixfetch index 6b4f272..cf2af74 100755 --- a/posixfetch +++ b/posixfetch @@ -50,8 +50,10 @@ vendor="${vendor##*Authentic}" vendor="${vendor##*Genuine}" cpu="${cpu##*) }" cpu="${cpu%% @*}" -cpu="${cpu##CPU }" cpu="${cpu%% CPU}" +cpu="${cpu##CPU }" +cpu="${cpu##*AMD }" +cpu="${cpu%% with*}" ## Uptime # the simple math is shamefully stolen from aosync