mirror of
https://github.com/ViViDboarder/drone-webdav.git
synced 2025-01-06 12:37:33 +00:00
Merge pull request #21 from ViViDboarder/fix-custom-args
Add unquoted custom args back in
This commit is contained in:
commit
133bfd843d
12
push.sh
12
push.sh
@ -36,8 +36,16 @@ fi
|
|||||||
# Repeat the upload as long as specified.
|
# Repeat the upload as long as specified.
|
||||||
while [ "${PLUGIN_ATTEMPTS}" -gt 0 ]; do
|
while [ "${PLUGIN_ATTEMPTS}" -gt 0 ]; do
|
||||||
|
|
||||||
# Uploading the file
|
# Uploading the file
|
||||||
curl --fail-with-body --show-error --silent "${ARGS[@]}" --upload-file "$PLUGIN_FILE" "$PLUGIN_DESTINATION" && {
|
# shellcheck disable=SC2086
|
||||||
|
curl \
|
||||||
|
$PLUGIN_CUSTOM_ARGUMENTS \
|
||||||
|
--fail-with-body \
|
||||||
|
--show-error \
|
||||||
|
--silent \
|
||||||
|
"${ARGS[@]}" \
|
||||||
|
--upload-file "$PLUGIN_FILE" \
|
||||||
|
"$PLUGIN_DESTINATION" && {
|
||||||
# Terminate the script as soon as the upload is successful
|
# Terminate the script as soon as the upload is successful
|
||||||
echo "[INFO] Upload was successful."
|
echo "[INFO] Upload was successful."
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user