blob: 3c45a0fcf0aafb37c2ac775b765800e4da357b15 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/usr/bin/env bash
if [ -f .hugo_upload ]; then
source .hugo_upload
rm -r public/
hugo --quiet
rsync -rtvzP public/ "$user@$host:$target_dir"
else
echo ".hugo_upload file not found in $(pwd)"
fi
|