1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-14 01:32:11 +00:00

Remove usage of htmlq in xhtmlize.sh

Now I no longer need to include htmlq in my binaries.tar.gz
This commit is contained in:
Rohan Kumar 2023-11-14 22:00:15 -08:00
parent 649f827f66
commit 0912a89ca9
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -8,7 +8,7 @@ set -e -u
output_dir="$1" output_dir="$1"
script_dir="$(dirname "$0")" script_dir="$(dirname "$0")"
printf '<style>%s</style>\n' "$(htmlq -t style <"$output_dir/index.html")" >"$output_dir/tmp.css" sed -e '7q;d' "$output_dir/index.html" | tr -d '\t' >"$output_dir/tmp.css"
cleanup() { cleanup() {
rm -f "$output_dir/tmp.css" rm -f "$output_dir/tmp.css"
} }