TEW-0x00/deploy
surtur 3f9133d39d
All checks were successful
continuous-integration/drone/push Build is passing
fix: incorrect rsync usage in deploy script
* resulting in missing stylesheet..like it was my first time with rsync
2020-03-23 05:08:56 +01:00

17 lines
281 B
Bash

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