diff --git a/automation/apply.sh b/automation/apply.sh index eaeadb1..cddf1a8 100755 --- a/automation/apply.sh +++ b/automation/apply.sh @@ -7,6 +7,8 @@ if [ ! -d "$dst_dir" ]; then fi mkdir -p "$dst_dir" ./git-portfolio "$dst" -git clone --depth 1 --branch main git@git.seanhealy.ie:sean/web-footer.git "/tmp/web-footer" +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) -rm -rf /tmp/web-footer +echo Cleaning up... >&2 +rm -rf "$tmp_web_footer_dir"