From ccb376dde3c5ee0372044b4bfd5cdda6d68a2824 Mon Sep 17 00:00:00 2001 From: neil Date: Sat, 19 Sep 2026 19:20:45 +0200 Subject: [PATCH] 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. --- deploy/ruckus.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/ruckus.sh b/deploy/ruckus.sh index d0fa4c3d..bac49544 100755 --- a/deploy/ruckus.sh +++ b/deploy/ruckus.sh @@ -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"