From 2921f58a9aa3d5e6d233873bee77c7a1d3ad0166 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 12 Nov 2019 21:33:32 +0000 Subject: [PATCH] Avoid issues with appending theme setting to config.json --- theme | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/theme b/theme index ae3dfd6a..6403c653 100755 --- a/theme +++ b/theme @@ -34,9 +34,6 @@ if [[ "$themeName" == 'highvis'* || "$themeName" == 'highviz'* ]]; then if [ -f config.json ]; then if grep -q '"theme"' config.json; then sed -i 's|"theme".*|"theme": "highvis",|g' config.json - else - sed -i '/"admin"/a "theme": "highvis",' config.json - sed -i 's|"theme"| "theme"|g' config.json fi fi filename=epicyon.css @@ -67,9 +64,6 @@ if [[ "$themeName" == 'purple'* ]]; then if [ -f config.json ]; then if grep -q '"theme"' config.json; then 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 filename=epicyon.css @@ -158,9 +152,6 @@ if [[ "$themeName" == 'hack'* || "$themeName" == 'hax'* ]]; then if [ -f config.json ]; then if grep -q '"theme"' config.json; then sed -i 's|"theme".*|"theme": "hacker",|g' config.json - else - sed -i '/"admin"/a "theme": "hacker",' config.json - sed -i 's|"theme"| "theme"|g' config.json fi fi filename=epicyon.css @@ -260,9 +251,6 @@ if [[ "$themeName" == 'light'* ]]; then if [ -f config.json ]; then if grep -q '"theme"' config.json; then sed -i 's|"theme".*|"theme": "light",|g' config.json - else - sed -i '/"admin"/a "theme": "light",' config.json - sed -i 's|"theme"| "theme"|g' config.json fi fi filename=epicyon.css