mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-06-24 09:12:38 +00:00
update install.sh with patching
This commit is contained in:
parent
a0d18b38f7
commit
7401f0ef24
1 changed files with 8 additions and 4 deletions
12
install.sh
12
install.sh
|
|
@ -59,7 +59,11 @@ spicetify config inject_css 1 replace_colors 1 overwrite_assets 1
|
||||||
spicetify apply
|
spicetify apply
|
||||||
|
|
||||||
echo "PATCHING"
|
echo "PATCHING"
|
||||||
echo "Please add these lines in your config file"
|
PATCH='[Patch]
|
||||||
echo " [Patch]"
|
xpui.js_find_8008 = ,(\\w+=)32,
|
||||||
echo " xpui.js_find_8008=,(\w+=)32,"
|
xpui.js_repl_8008 = ,\${1}58,'
|
||||||
echo " xpui.js_repl_8008=,`${1}58,"
|
if cat config-xpui.ini | grep -o '\[Patch\]'; then
|
||||||
|
perl -i -0777 -pe "s/\[Patch\].*?($|(\r*\n){2})/$PATCH\n\n/s" config-xpui.ini
|
||||||
|
else
|
||||||
|
echo -e "\n$PATCH" >> config-xpui.ini
|
||||||
|
fi
|
||||||
Loading…
Reference in a new issue