change config format

This commit is contained in:
2025-04-15 21:44:14 +00:00
parent dca9541eee
commit 6fac717306
5 changed files with 33 additions and 20 deletions

View File

@@ -1,12 +1,5 @@
#!/bin/sh
set -e
cd "$(dirname "$0")"
cd "$(dirname "$0")/.."
[ -d ./themes/yrzam ] && cd ./themes/yrzam
VARS=$(printenv | \
grep -E 'THEME_.*' | \
sed -e 's/[= ].*//g' | sed -e 's/^/\$/' | tr '\n' ' '
)
envsubst "$VARS" < "./assets/css/variables.scss.tmpl" > "./assets/css/variables.scss"
cp ~/.config/theme.json ../data/theme.json