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:
ViViDboarder 2023-07-25 15:04:19 -07:00
parent 95b0ef6abf
commit 71e9fdd0f3
1 changed files with 10 additions and 2 deletions

12
push.sh
View File

@ -36,8 +36,16 @@ fi
# Repeat the upload as long as specified.
while [ "${PLUGIN_ATTEMPTS}" -gt 0 ]; do
# Uploading the file
curl --fail-with-body --show-error --silent "${ARGS[@]}" --upload-file "$PLUGIN_FILE" "$PLUGIN_DESTINATION" && {
# Uploading the file
# 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