You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
318 B

#! /bin/bash
FILE="$(realpath "${BASH_SOURCE[0]}")"
DIRECTORY="$(dirname "${FILE}")"
TARGETS=(
"kumquat@tilde.link:web"
"kumquat@tilde.team:public_html"
"kumquat@envs.net:public_html"
)
cd "${DIRECTORY}"
zola build && \
for target in "${TARGETS[@]}"; do
rsync -a -c -P -v --delete-before \
public/ "${target}/"
done