diff --git a/automation/apply.sh b/automation/apply.sh index 5528367..612bf85 100755 --- a/automation/apply.sh +++ b/automation/apply.sh @@ -1,2 +1,9 @@ #!/usr/bin/bash -./git-portfolio /root/data/small/caddy/srv/seanhealy.ie/projects/ +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"