Fix path errors
This commit is contained in:
3
neofetch
3
neofetch
@@ -667,8 +667,9 @@ getwmtheme() {
|
|||||||
|
|
||||||
'Blackbox')
|
'Blackbox')
|
||||||
path="$(wmic process get ExecutablePath | grep "blackbox")"
|
path="$(wmic process get ExecutablePath | grep "blackbox")"
|
||||||
|
path="${path//'\'/'/'}"
|
||||||
|
|
||||||
wmtheme="$(grep 'session.styleFile:' "${path/'.exe'/.rc}")"
|
wmtheme="$(grep "^session\.styleFile:" ${path/'.exe'/.rc})"
|
||||||
wmtheme="${wmtheme/'session.styleFile: '}"
|
wmtheme="${wmtheme/'session.styleFile: '}"
|
||||||
wmtheme="${wmtheme##*/}"
|
wmtheme="${wmtheme##*/}"
|
||||||
wmtheme="${wmtheme%.*}"
|
wmtheme="${wmtheme%.*}"
|
||||||
|
|||||||
Reference in New Issue
Block a user