Compare commits

...

2 Commits

Author SHA1 Message Date
29d6ef5ad0 Add more safety precautions. 2026-04-20 17:01:32 +01:00
f397c33ac0 Add warning message. 2026-04-20 17:00:37 +01:00
2 changed files with 5 additions and 1 deletions

View File

@@ -13,4 +13,6 @@ git clone --depth 1 --branch main git@git.seanhealy.ie:sean/web-footer.git "$tmp
echo Re-personalising HTML files... >&2
(cd "/tmp/web-footer" && ./automation/personalise.sh)
echo Cleaning up... >&2
if [ "$tmp_web_footer_dir" ] && [ -d "$tmp_web_footer_dir" ] && [ -d "$tmp_web_footer_dir/.git" ]; then
rm -rf "$tmp_web_footer_dir"
fi

View File

@@ -221,6 +221,8 @@ li.language {
EOF
)"
echo "$portfolio_index" > "$tmp_portfolio/index.html"
else
echo "Warning: No public repositories found for user '$GIT_USER'. Portfolio will be empty." >&2
fi
if [ -d "$directory" ]; then
if [ "$(du -sb "$directory" | cut -f1)" -gt $((1024 * 1024 * 400)) ]; then