mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-10 12:02:51 +00:00
shellcheck fixes
This commit is contained in:
parent
5e6163fc87
commit
37c3176945
@ -110,8 +110,8 @@ _clodo_init() {
|
||||
|
||||
_get $CLODO_AUTH_URL "onlyheader"
|
||||
|
||||
CLODO_TOKEN=$(grep "^X-Auth-Token" $HTTP_HEADER | tr -d "\r" | cut -d " " -f 2)
|
||||
CLODO_API=$(grep "^X-Server-Management-Url" $HTTP_HEADER | tr -d "\r" | cut -d " " -f 2)
|
||||
CLODO_TOKEN=$(grep "^X-Auth-Token" "$HTTP_HEADER" | tr -d "\r" | cut -d " " -f 2)
|
||||
CLODO_API=$(grep "^X-Server-Management-Url" "$HTTP_HEADER" | tr -d "\r" | cut -d " " -f 2)
|
||||
|
||||
if [ -z "$CLODO_TOKEN" ] || [ -z "$CLODO_API" ]; then
|
||||
_err "Authentication error"
|
||||
@ -168,7 +168,9 @@ _clodo_rest() {
|
||||
else
|
||||
response="$(_get "$CLODO_API/$ep")"
|
||||
fi
|
||||
if [ "$?" != "0" ]; then
|
||||
|
||||
_ret=$?
|
||||
if [ "$_ret" != "0" ]; then
|
||||
_err "error $ep"
|
||||
return 1
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user