Files
git-portfolio/automation/apply.sh
2026-04-20 16:43:55 +01:00

15 lines
488 B
Bash
Executable File

#!/usr/bin/bash
dst=/root/data/small/caddy/srv/seanhealy.ie/projects
dst_dir=$(dirname "$dst")
if [ ! -d "$dst_dir" ]; then
echo "Destination directory does not exist: $dst_dir"
exit 1
fi
mkdir -p "$dst_dir"
./git-portfolio "$dst"
tmp_web_footer_dir="/tmp/web-footer-$(date +%N)"
git clone --depth 1 --branch main git@git.seanhealy.ie:sean/web-footer.git "$tmp_web_footer_dir"
(cd "/tmp/web-footer" && ./automation/personalise.sh)
echo Cleaning up... >&2
rm -rf "$tmp_web_footer_dir"