Compare commits
2 Commits
bff7796f69
...
c4b43e6c6e
| Author | SHA1 | Date | |
|---|---|---|---|
| c4b43e6c6e | |||
| cec88c7b68 |
@@ -10,6 +10,7 @@ mkdir -p "$dst_dir"
|
||||
tmp_web_footer_dir="/tmp/web-footer-$(date +%N)"
|
||||
echo Cloning web-footer to "$tmp_web_footer_dir"... >&2
|
||||
git clone --depth 1 --branch main git@git.seanhealy.ie:sean/web-footer.git "$tmp_web_footer_dir"
|
||||
echo Re-personalising HTML files... >&2
|
||||
(cd "/tmp/web-footer" && ./automation/personalise.sh)
|
||||
echo Cleaning up... >&2
|
||||
rm -rf "$tmp_web_footer_dir"
|
||||
|
||||
@@ -165,6 +165,7 @@ EOF
|
||||
EOF
|
||||
)"
|
||||
done < <(my_curl)
|
||||
if [ "$portfolio_index" ]; then
|
||||
portfolio_index="$(
|
||||
cat <<EOF
|
||||
<!DOCTYPE html>
|
||||
@@ -220,6 +221,7 @@ li.language {
|
||||
EOF
|
||||
)"
|
||||
echo "$portfolio_index" > "$tmp_portfolio/index.html"
|
||||
fi
|
||||
if [ -d "$directory" ]; then
|
||||
if [ "$(du -sb "$directory" | cut -f1)" -gt $((1024 * 1024 * 400)) ]; then
|
||||
echo "Error: Directory '$directory' contains more than 400MB of data. Exiting to prevent data loss."
|
||||
|
||||
Reference in New Issue
Block a user