TEW-0x00/deploy
surtur 94ca2dafa5
Some checks failed
continuous-integration/drone/push Build is failing
modified deploy script to reflect use of css
2020-03-23 05:05:21 +01:00

17 lines
280 B
Bash

#!/bin/bash
USR=dotyaoverlord
HOST=dotya.ml
PUBDIR=tew_0x00public/
mkdir -pv public
cp -v index.html ./public
rsync -v ./css ./public
if [ $USER = $USR ]; then
rsync -av --delete public/ ~/${PUBDIR}
else
rsync -avz --delete public/ ${USR}@${HOST}:~/${PUBDIR}
fi
exit 0