support for multiple arguments

This commit is contained in:
MuratovAS 2023-07-26 01:40:29 +05:00
parent 05523f4e75
commit abd29efe4e
No known key found for this signature in database
GPG Key ID: AC356035D45A17DE

View File

@ -30,7 +30,7 @@ fi
# Additional arguments to be passed to curl.
if [ -n "$PLUGIN_CUSTOM_ARGUMENTS" ]; then
ARGS+=("${PLUGIN_CUSTOM_ARGUMENTS}")
while read arg; do ARGS+=("$arg"); done <<(echo ${PLUGIN_CUSTOM_ARGUMENTS} | tr ' ' '\n' )
fi
# Set PLUGIN_ATTEMPTS to one if nothing else is specified