mirror of
https://github.com/ViViDboarder/drone-webdav.git
synced 2026-06-04 18:24:04 +08:00
Add unquoted custom args back in
This requires disabling shellcheck for the whole line. I haven't yet been able to find a way to let the shell parse out args into an array with quotes.
This commit is contained in:
@@ -37,7 +37,15 @@ fi
|
||||
while [ "${PLUGIN_ATTEMPTS}" -gt 0 ]; do
|
||||
|
||||
# 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
|
||||
echo "[INFO] Upload was successful."
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user