main2
Bob Mottram 2019-09-11 20:43:51 +01:00
parent 200989d3b9
commit b8a31d0fb6
1 changed files with 2 additions and 2 deletions

4
theme
View File

@ -78,9 +78,9 @@ fi
if [[ "$themeName" == 'hack'* || "$themeName" == 'hax'* ]]; then if [[ "$themeName" == 'hack'* || "$themeName" == 'hax'* ]]; 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 's|"theme".*|"theme": "hacker";|g' config.json sed -i 's|"theme".*|"theme": "hacker",|g' config.json
else else
sed -i '/"admin"/i "theme": "hacker";' config.json sed -i '/"admin"/a "theme": "hacker",' config.json
sed -i 's|"theme"| "theme"|g' config.json sed -i 's|"theme"| "theme"|g' config.json
fi fi
fi fi