Files
git-portfolio/automation/apply.sh

13 lines
405 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"
git clone --depth 1 --branch main git@git.seanhealy.ie:sean/web-footer.git "/tmp/web-footer"
(cd "/tmp/web-footer" && ./automation/personalise.sh)
rm -rf /tmp/web-footer