tunuifranken.info/create-index.sh

12 lines
282 B
Bash
Executable file

#!/bin/bash
[ "$HOSTNAME" != lime2 ] || exit 1
echo "Updating index.html"
awk -v header="$(<./header.html)" '{sub(/===HEADER===/,header)} 1' ./index.template.html |
awk -v footer="$(<./footer.html)" '{sub(/===FOOTER===/,footer)} 1' > ./index.html
git add ./index.html
exit 0