From 4487c99296cc6c150bb505a15b738eaac5fb7d13 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 14 Jan 2017 09:50:41 +1100 Subject: [PATCH] Resolution: [Windows] Fix lint error --- neofetch | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/neofetch b/neofetch index 1c34d996..0ff17521 100755 --- a/neofetch +++ b/neofetch @@ -1389,11 +1389,13 @@ get_resolution() { ;; "Windows") - local width="$(wmic path Win32_VideoController get CurrentHorizontalResolution)" - local width="${width//CurrentHorizontalResolution/}" + local width="" + width="$(wmic path Win32_VideoController get CurrentHorizontalResolution)" + width="${width//CurrentHorizontalResolution/}" - local height="$(wmic path Win32_VideoController get CurrentVerticalResolution)" - local height="${height//CurrentVerticalResolution/}" + local height="" + height="$(wmic path Win32_VideoController get CurrentVerticalResolution)" + height="${height//CurrentVerticalResolution/}" [[ "$(trim "$width")" ]] && resolution="${width//[[:space:]]}x${height//[[:space:]]}" ;;