#!/bin/sh USR=dotyaoverlord HOST=dotya.ml DIR=public/ git submodule init git submodule update ../hugo --gc=true --minify if [ $USER == $USR ]; then rsync -av --delete public/ ~/${DIR} else rsync -avz --delete public/ ${USR}@${HOST}:~/${DIR} fi exit 0