Files
techblog/publish.sh
2022-01-16 20:13:37 +01:00

11 lines
181 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 --progress public/ ${TARGET}
fi