From 7de6bb8d2c4d817d67ce5e7c2f3f60897e37233d Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 11 Jun 2021 05:56:42 +0000 Subject: [PATCH] resolution: Fix truncation of drm modes. Closes #1639 --- neofetch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index fccdef9b..b2938644 100755 --- a/neofetch +++ b/neofetch @@ -3047,7 +3047,8 @@ get_resolution() { ;; esac - resolution="${resolution%,*}" + resolution="${resolution%%,}" + resolution="${resolution%%, }" [[ -z "${resolution/x}" ]] && resolution= }