globalinitiative-xml-sharing/deploy.sh
2021-02-03 17:34:11 +01:00

9 lines
205 B
Bash
Executable file

#!/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