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

7
theme
View File

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