From 63529ddebf8291af1ea1ccdb29060717e7d05f0e Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 18 Dec 2016 23:05:37 +1100 Subject: [PATCH] Resolution: blank resolution on Windows --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 4bc46fd8..abd4b7b5 100755 --- a/neofetch +++ b/neofetch @@ -1266,7 +1266,7 @@ get_resolution() { height="$(wmic path Win32_VideoController get CurrentVerticalResolution /value)" height="${height//CurrentVerticalResolution'='/}" - [[ "$width" ]] && resolution="${width}x${height}" + [[ "$(trim "$width")" ]] && resolution="${width}x${height}" ;; "Haiku")