deploy/ruckus: rename _post_file to avoid clashing with the core helper

Core acme.sh now defines a _post_file() function. Functions and variables
live in separate namespaces in POSIX sh, so this was not a real conflict,
but the identical name is confusing to read. Use _post_upfile, matching the
_post_action / _post_boundary / _post_data locals already in this function.
This commit is contained in:
neil
2026-09-19 19:20:45 +02:00 Unverified
parent 8f56e8fe04
commit ccb376dde3
+2 -2
View File
@@ -175,7 +175,7 @@ _get_unleashed_version() {
_post_upload() {
_post_action="$1"
_post_file="$2"
_post_upfile="$2"
_post_boundary="----FormBoundary$(date "+%s%N")"
@@ -183,7 +183,7 @@ _post_upload() {
printf -- "--%s\r\n" "$_post_boundary"
printf -- "Content-Disposition: form-data; name=\"u\"; filename=\"%s\"\r\n" "$_post_action"
printf -- "Content-Type: application/octet-stream\r\n\r\n"
printf -- "%s\r\n" "$(cat "$_post_file")"
printf -- "%s\r\n" "$(cat "$_post_upfile")"
printf -- "--%s\r\n" "$_post_boundary"
printf -- "Content-Disposition: form-data; name=\"action\"\r\n\r\n"