drone-webdav/push.sh

8 lines
232 B
Bash
Raw Permalink Normal View History

2017-05-27 06:56:22 +00:00
#! /bin/sh
# If username and password are provided, add auth
if [ ! -z "$PLUGIN_USERNAME" ] && [ ! -z "$PLUGIN_PASSWORD" ]; then
AUTH="-u ${PLUGIN_USERNAME}:${PLUGIN_PASSWORD}"
fi
curl -T $PLUGIN_FILE $AUTH $PLUGIN_DESTINATION