Commit 1136ca82 authored by Dylan Araps's avatar Dylan Araps

Fix path errors

parent 3ab1b932
...@@ -667,8 +667,9 @@ getwmtheme() { ...@@ -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%.*}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment