mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-10-21 13:31:18 +00:00
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:
1 parent
8f56e8fe04
commit
ccb376dde3
1 file changed
+2
-2
+2
-2
@@ -175,7 +175,7 @@ _get_unleashed_version() {
|
|||||||
|
|
||||||
_post_upload() {
|
_post_upload() {
|
||||||
_post_action="$1"
|
_post_action="$1"
|
||||||
_post_file="$2"
|
_post_upfile="$2"
|
||||||
|
|
||||||
_post_boundary="----FormBoundary$(date "+%s%N")"
|
_post_boundary="----FormBoundary$(date "+%s%N")"
|
||||||
|
|
||||||
@@ -183,7 +183,7 @@ _post_upload() {
|
|||||||
printf -- "--%s\r\n" "$_post_boundary"
|
printf -- "--%s\r\n" "$_post_boundary"
|
||||||
printf -- "Content-Disposition: form-data; name=\"u\"; filename=\"%s\"\r\n" "$_post_action"
|
printf -- "Content-Disposition: form-data; name=\"u\"; filename=\"%s\"\r\n" "$_post_action"
|
||||||
printf -- "Content-Type: application/octet-stream\r\n\r\n"
|
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 -- "--%s\r\n" "$_post_boundary"
|
||||||
printf -- "Content-Disposition: form-data; name=\"action\"\r\n\r\n"
|
printf -- "Content-Disposition: form-data; name=\"action\"\r\n\r\n"
|
||||||
|
|||||||