17 lines
280 B
Bash
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 |