done Better™ i think
This commit is contained in:
parent
5e45336d42
commit
cdac3d7132
3 changed files with 24 additions and 27 deletions
|
|
@ -5,9 +5,6 @@ cd /var/lib/caddy/tilde/generate/
|
|||
rm ../index.html
|
||||
|
||||
descs=$(./genuserdescs.scm)
|
||||
template=$(cat index.html.template)
|
||||
|
||||
echo "$descs" > users.html
|
||||
|
||||
cat start.html users.html end.html > ../index.html
|
||||
|
||||
rm users.html
|
||||
echo "$template" | sed "s/<!--USERS-->[\s\S]*/$descs/" > ../index.html
|
||||
Loading…
Add table
Add a link
Reference in a new issue