mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-23 03:59:58 +00:00
Fix duplicate info on Windows
This commit is contained in:
3
fetch
3
fetch
@@ -1178,7 +1178,7 @@ getresolution () {
|
|||||||
getstyle () {
|
getstyle () {
|
||||||
# Fix weird output when the function
|
# Fix weird output when the function
|
||||||
# is run multiple times.
|
# is run multiple times.
|
||||||
unset gtk2theme gtk3theme
|
unset gtk2theme gtk3theme theme path
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
theme)
|
theme)
|
||||||
@@ -1334,6 +1334,7 @@ getstyle () {
|
|||||||
else
|
else
|
||||||
case "$os" in
|
case "$os" in
|
||||||
"Windows")
|
"Windows")
|
||||||
|
[ ! "$path" ] && return
|
||||||
theme="$(head -n1 $path 2>/dev/null)"
|
theme="$(head -n1 $path 2>/dev/null)"
|
||||||
theme="${theme##*\\}"
|
theme="${theme##*\\}"
|
||||||
theme="${theme%.*}"
|
theme="${theme%.*}"
|
||||||
|
|||||||
Reference in New Issue
Block a user