mirror of
https://github.com/vale981/tridactyl
synced 2025-03-06 10:01:39 -05:00

- Fix `find` in bodgecss.sh appending an extra / - Remove bashism from bodgecss.sh which doesn't work in 3.2 (macos default) - Remove `-p .` from mktemp which is unnecessary and doesn't exist on macos.
10 lines
250 B
Bash
Executable file
10 lines
250 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
imports=$(find src/static/themes -name '*.css'| awk -F"/" '{ printf "@import url('\''../%s/%s/%s'\'');\n", $3, $4, $5 }')
|
|
|
|
|
|
for css in build/static/css/*.css; do
|
|
printf '%s\n%s\n' "$imports" "$(cat $css)" > $css
|
|
done
|