This commit is contained in:
2024-11-29 07:14:53 +00:00
parent 7fccc43414
commit a73de7d673
8 changed files with 281 additions and 252 deletions

View File

@@ -0,0 +1,14 @@
#!/bin/sh
set -e
cd "$(dirname "$0")/.."
if [ ! -f "../../themes/yrzam/init/import-environment.sh" ]; then
echo "Wrong path" >&2
exit 1;
fi
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"