Select purple theme in config

main2
Bob Mottram 2019-09-11 23:13:01 +01:00
parent 18a3ab2a7d
commit d66deb1a64
1 changed files with 5 additions and 2 deletions

5
theme
View File

@ -30,7 +30,10 @@ fi
if [[ "$themeName" == 'purple'* ]]; then
if [ -f config.json ]; then
if grep -q '"theme"' config.json; then
sed -i '/"theme"/d' config.json
sed -i 's|"theme".*|"theme": "purple",|g' config.json
else
sed -i '/"admin"/a "theme": "purple",' config.json
sed -i 's|"theme"| "theme"|g' config.json
fi
fi
cp epicyon-profile.css epicyon.css