From dfa82bc99532b9b44af3c719d97d745befcffeec Mon Sep 17 00:00:00 2001 From: Dylan Date: Fri, 19 Feb 2016 23:18:02 +1100 Subject: [PATCH] Fix duplicate info on Windows --- fetch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fetch b/fetch index 177f0028..1f74560e 100755 --- a/fetch +++ b/fetch @@ -1178,7 +1178,7 @@ getresolution () { getstyle () { # Fix weird output when the function # is run multiple times. - unset gtk2theme gtk3theme + unset gtk2theme gtk3theme theme path case "$1" in theme) @@ -1334,6 +1334,7 @@ getstyle () { else case "$os" in "Windows") + [ ! "$path" ] && return theme="$(head -n1 $path 2>/dev/null)" theme="${theme##*\\}" theme="${theme%.*}"