mirror of
https://github.com/yrzam/yrzam-hugo-theme.git
synced 2025-12-11 02:09:05 +00:00
reorg
This commit is contained in:
14
init/import-environment.sh
Normal file
14
init/import-environment.sh
Normal 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"
|
||||
Reference in New Issue
Block a user