From 0549cfc9aad681d84328df6e23ae5d1d520c9923 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 28 Nov 2016 17:58:10 +1100 Subject: [PATCH] Windows: Fix wmic bugs --- neofetch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/neofetch b/neofetch index b5b4e924..0c8218bc 100755 --- a/neofetch +++ b/neofetch @@ -1025,7 +1025,7 @@ get_gpu() { "Windows") gpu="$(wmic path Win32_VideoController get caption /value)" - gpu="${gpu/Caption'='}" + gpu="${gpu//Caption'='}" ;; "Haiku") @@ -1304,10 +1304,10 @@ get_resolution() { "Windows") width="$(wmic path Win32_VideoController get CurrentHorizontalResolution /value)" - width="${width/CurrentHorizontalResolution'='/}" + width="${width//CurrentHorizontalResolution'='/}" height="$(wmic path Win32_VideoController get CurrentVerticalResolution /value)" - height="${height/CurrentVerticalResolution'='/}" + height="${height//CurrentVerticalResolution'='/}" [[ "$width" ]] && resolution="${width}x${height}" ;;