From c11f1499895fde14b6c9f47ac9d58ece92f59e63 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 23 Jan 2020 19:04:14 +0200 Subject: [PATCH] neofetch: Fix windows issue. Closes #1297 --- neofetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 0ed2a32c..9b5704fb 100755 --- a/neofetch +++ b/neofetch @@ -2784,10 +2784,10 @@ get_resolution() { "Windows") IFS=$'\n' read -d "" -ra sw \ - < <(wmic path Win32_VideoController get CurrentHorizontalResolution) + <<< "$(wmic path Win32_VideoController get CurrentHorizontalResolution)" IFS=$'\n' read -d "" -ra sh \ - < <(wmic path Win32_VideoController get CurrentVerticalResolution) + <<< "$(wmic path Win32_VideoController get CurrentVerticalResolution)" sw=("${sw[@]//CurrentHorizontalResolution}") sh=("${sh[@]//CurrentHorizontalResolution}")