From e45664ae6dec041567d2e79751c589477a2a5ad9 Mon Sep 17 00:00:00 2001 From: Dylan Date: Mon, 1 Feb 2016 08:22:47 +1100 Subject: [PATCH] Fix cases where wmic prints an equals sign --- fetch | 1 + 1 file changed, 1 insertion(+) diff --git a/fetch b/fetch index 6bdc88ed..bf1c8112 100755 --- a/fetch +++ b/fetch @@ -403,6 +403,7 @@ case "$os" in "Windows") distro="$(wmic os get Caption /value)" distro=${distro/Caption} + distro=${distro/Caption\=} distro=${distro//[[:space:]]/ } distro=${distro// } distro=${distro/Microsoft }