10 lines
205 B
Bash
10 lines
205 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
DESTINATION=root@xml.globalinitiative.net:/var/www/
|
||
|
WEBSITE=xml.globalinitiative.net
|
||
|
|
||
|
sftp -b - "$DESTINATION" <<- EOF
|
||
|
-rm $WEBSITE/*
|
||
|
$(for f in "$@"; do echo "put -R $f $WEBSITE/"; done)
|
||
|
EOF
|