mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-22 11:39:53 +00:00
Resolution: [Windows] Fix lint error
This commit is contained in:
10
neofetch
10
neofetch
@@ -1389,11 +1389,13 @@ get_resolution() {
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
"Windows")
|
"Windows")
|
||||||
local width="$(wmic path Win32_VideoController get CurrentHorizontalResolution)"
|
local width=""
|
||||||
local width="${width//CurrentHorizontalResolution/}"
|
width="$(wmic path Win32_VideoController get CurrentHorizontalResolution)"
|
||||||
|
width="${width//CurrentHorizontalResolution/}"
|
||||||
|
|
||||||
local height="$(wmic path Win32_VideoController get CurrentVerticalResolution)"
|
local height=""
|
||||||
local height="${height//CurrentVerticalResolution/}"
|
height="$(wmic path Win32_VideoController get CurrentVerticalResolution)"
|
||||||
|
height="${height//CurrentVerticalResolution/}"
|
||||||
|
|
||||||
[[ "$(trim "$width")" ]] && resolution="${width//[[:space:]]}x${height//[[:space:]]}"
|
[[ "$(trim "$width")" ]] && resolution="${width//[[:space:]]}x${height//[[:space:]]}"
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user