added uninstall.sh

This commit is contained in:
Julien Maille 2021-11-02 22:04:58 +01:00
parent 7401f0ef24
commit cdba4468ba

16
uninstall.sh Normal file
View file

@ -0,0 +1,16 @@
#!/bin/sh
# Copyright 2019 khanhas. GPL license.
# Edited from project Denoland install script (https://github.com/denoland/deno_install)
set -e
echo "UN-INSTALLING"
cd "$(dirname "$(spicetify -c)")/Themes/DribbblishDynamic"
spicetify config current_theme " " extensions dribbblish-dynamic.js-
echo "UN-PATCHING"
if cat config-xpui.ini | grep -o '\[Patch\]'; then
perl -i -0777 -pe "s/\[Patch\].*?($|(\r*\n){2})//s" config-xpui.ini
fi
spicetify apply