mirror of
https://github.com/ViViDboarder/drone-webdav.git
synced 2026-06-04 18:24:04 +08:00
8 lines
232 B
Bash
8 lines
232 B
Bash
#! /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
|