From d66deb1a64b1d8b5beecd48b0c1dea733aa584f5 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 11 Sep 2019 23:13:01 +0100 Subject: [PATCH] Select purple theme in config --- theme | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/theme b/theme index b1e4cd2a..12586a2b 100755 --- a/theme +++ b/theme @@ -30,8 +30,11 @@ fi if [[ "$themeName" == 'purple'* ]]; then if [ -f config.json ]; then if grep -q '"theme"' config.json; then - sed -i '/"theme"/d' config.json - fi + 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 filename=epicyon.css