mirror of https://gitlab.com/bashrc2/epicyon
Avoid issues with appending theme setting to config.json
parent
9ec5379a97
commit
2921f58a9a
12
theme
12
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
|
||||
|
|
Loading…
Reference in New Issue