Files
techblog/publish.sh
2022-01-17 23:45:18 +01:00

11 lines
190 B
Bash
Executable File

#!/bin/sh
TARGET="webpage_blog@vpn.straubs.eu:/var/www/blog/html/"
hugo
if [ $? -eq 0 ]; then
echo "Everything fine --> publishing"
rsync -rvhz --delete --progress public/ ${TARGET}
fi