mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-22 19:49:54 +00:00
Fix path errors
This commit is contained in:
4
neofetch
4
neofetch
@@ -669,9 +669,9 @@ getwmtheme() {
|
|||||||
path="$(wmic process get ExecutablePath | grep "blackbox")"
|
path="$(wmic process get ExecutablePath | grep "blackbox")"
|
||||||
path="${path//'\'/'/'}"
|
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%.*}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user