style fixes

This commit is contained in:
denkristoffer 2020-05-07 19:36:24 +02:00
parent 8b72986724
commit ba94e5bae1
No known key found for this signature in database
GPG Key ID: 2C7020340006EEE6

View File

@ -101,7 +101,7 @@ _get_root() {
return 1 return 1
fi fi
if _contains "$response" "\"name\":\"$h\"" > /dev/null; then if _contains "$response" "\"name\":\"$h\"" >/dev/null; then
_sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-$p) _sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-$p)
_domain=$h _domain=$h
return 0 return 0
@ -124,9 +124,9 @@ _vercel_rest() {
if [ "$m" != "GET" ]; then if [ "$m" != "GET" ]; then
_secure_debug2 data "$data" _secure_debug2 data "$data"
response="$(_post "$data" $path "" "$m")" response="$(_post "$data" "$path" "" "$m")"
else else
response="$(_get $path)" response="$(_get "$path")"
fi fi
_ret="$?" _ret="$?"
_code="$(grep "^HTTP" "$HTTP_HEADER" | _tail_n 1 | cut -d " " -f 2 | tr -d "\\r\\n")" _code="$(grep "^HTTP" "$HTTP_HEADER" | _tail_n 1 | cut -d " " -f 2 | tr -d "\\r\\n")"