16 lines
279 B
Bash
Executable File
16 lines
279 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
repo_root=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)
|
|
target_dir="${1:-/var/www/davideisinger.com}"
|
|
|
|
pushd "${repo_root}" >/dev/null
|
|
mkdir -p "${target_dir}"
|
|
rsync \
|
|
-v \
|
|
-r \
|
|
--delete \
|
|
public/ \
|
|
"${target_dir}/"
|
|
popd >/dev/null
|