From 71e9fdd0f3669c009cc3da5f9c7e3cbd7a4d5eaf Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Tue, 25 Jul 2023 15:04:19 -0700 Subject: [PATCH] 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. --- push.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/push.sh b/push.sh index 6360046..55ff19a 100755 --- a/push.sh +++ b/push.sh @@ -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