From 500fd6c562c05a822c9ec27a0963780e21cd7cb4 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 14 Jan 2017 08:55:05 +1100 Subject: [PATCH] Resolution: [Windows] Locally set height and width vars --- neofetch | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/neofetch b/neofetch index 447f0ac0..1c34d996 100755 --- a/neofetch +++ b/neofetch @@ -1389,13 +1389,13 @@ get_resolution() { ;; "Windows") - width="$(wmic path Win32_VideoController get CurrentHorizontalResolution)" - width="${width//CurrentHorizontalResolution/}" + local width="$(wmic path Win32_VideoController get CurrentHorizontalResolution)" + local width="${width//CurrentHorizontalResolution/}" - height="$(wmic path Win32_VideoController get CurrentVerticalResolution)" - height="${height//CurrentVerticalResolution/}" + local height="$(wmic path Win32_VideoController get CurrentVerticalResolution)" + local height="${height//CurrentVerticalResolution/}" - [[ "$(trim "$width")" ]] && resolution="${width// }x${height// }" + [[ "$(trim "$width")" ]] && resolution="${width//[[:space:]]}x${height//[[:space:]]}" ;; "Haiku")