surtur
d98ea5defc
All checks were successful
continuous-integration/drone/push Build is passing
* due to CSP issue clipboard functionality was not working correctly, this temporarily fixes that * updated script paths accordingly
17 lines
301 B
Bash
17 lines
301 B
Bash
#!/bin/bash
|
|
|
|
USR=dotyaoverlord
|
|
HOST=dotya.ml
|
|
PUBDIR=tew_0x00public/
|
|
|
|
rm -rfv ./public
|
|
mkdir -pv public
|
|
rsync -av index.html scripts pages css media ./public
|
|
|
|
if [ $USER = $USR ]; then
|
|
rsync -av --delete public/ ~/${PUBDIR}
|
|
else
|
|
rsync -avz --delete public/ ${USR}@${HOST}:~/${PUBDIR}
|
|
fi
|
|
|
|
exit 0 |