mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-11-09 16:01:46 +00:00
minor, fix shellcheck warning
This commit is contained in:
parent
d11d476126
commit
671a699472
@ -199,7 +199,7 @@ _get_root() {
|
||||
|
||||
#Usage: method URI data
|
||||
_rest() {
|
||||
m=$1
|
||||
m="$1"
|
||||
ep="$2"
|
||||
data="$3"
|
||||
_debug "$ep"
|
||||
@ -207,11 +207,11 @@ _rest() {
|
||||
|
||||
_debug url "$url"
|
||||
|
||||
if [ "$data" ]; then
|
||||
if [ "$m" = "GET" ]; then
|
||||
response="$(_get "$url" | tr -d '\r')"
|
||||
else
|
||||
_debug2 data "$data"
|
||||
response="$(_post "$data" "$url" | tr -d '\r')"
|
||||
else
|
||||
response="$(_get "$url" | tr -d '\r')"
|
||||
fi
|
||||
|
||||
if [ "$?" != "0" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user