Files
purple-explorer/scripts/sass_theme_reader.sh
T
joeuhren a538be2dbb Better loading of nested settings
-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
2021-01-23 16:51:46 -07:00

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