a538be2dbb
-Improved loading of settings including warning of missing and/or invalid settings and the ability to load the explorer using defaults without a settings.json file
7 lines
288 B
Bash
7 lines
288 B
Bash
#!/bin/bash
|
|
|
|
if [ -f ./settings.json ]; then
|
|
echo "\$theme-name: \"$(./node_modules/.bin/strip-json-comments settings.json | ./node_modules/.bin/json shared_pages.theme)\";" > ./public/css/_theme-selector.scss
|
|
else
|
|
echo "\$theme-name: \"Exor\";" > ./public/css/_theme-selector.scss
|
|
fi |