fix: adjust shell format with shfmt

This commit is contained in:
Matteo Gaggiano authored and neil committed 2026-03-16 20:30:29 +08:00
1 parent e08eb22093
commit c2a001fd73
1 file changed
+5 -10
+5 -10
View File
@@ -16,7 +16,6 @@ else ## LIVE
MVMNET_API_URL="https://api.mvmnet.com/api/1.0"
fi
######## Public functions #####################
dns_mvmnet_add() {
@@ -63,7 +62,6 @@ dns_mvmnet_rm() {
_subdomain=$(echo "$fulldomain" | sed -r "s/.$_domain//")
_debug _subdomain "$_subdomain"
if ! _get_record_id "$_subdomain" "$_domain" "$txtvalue"; then
_warn "Record id for $_subdomain not found, please remove it manually"
return 0
@@ -84,8 +82,7 @@ dns_mvmnet_rm() {
#################### Private functions below ##################################
_check_variables ()
{
_check_variables() {
MVMNET_ID="${MVMNET_ID:-$(_readaccountconf_mutable MVMNET_ID)}"
MVMNET_KEY="${MVMNET_KEY:-$(_readaccountconf_mutable MVMNET_KEY)}"
MVMNET_SEED="${MVMNET_SEED:-$(_readaccountconf_mutable MVMNET_SEED)}"
@@ -98,8 +95,7 @@ _check_variables ()
fi
}
_retrieve_and_check_variables ()
{
_retrieve_and_check_variables() {
_check_variables
_saveaccountconf_mutable MVMNET_ID "$MVMNET_ID"
@@ -112,8 +108,7 @@ _retrieve_and_check_variables ()
# _sub_domain=_acme-challenge.www
# _domain=domain.com
# _domain_id=123456789
_get_root ()
{
_get_root() {
domain=$1
i=1
p=1
@@ -131,7 +126,7 @@ _get_root ()
return 1
fi
if _contains "$response" "\"domain_idn\":\"$h\"" ; then
if _contains "$response" "\"domain_idn\":\"$h\""; then
_domain_id=$(echo "$response" | _egrep_o ".\"id\": *\"[0-9]*\"" | _head_n 1 | cut -d : -f 2 | tr -d \" | tr -d " ")
if [ "$_domain_id" ]; then
_sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-"$p")
@@ -203,7 +198,7 @@ _mvmnet_rest() {
export _H2="X-Mvm-Signature: ${signature}"
case "$m" in
POST|PUT)
POST | PUT)
_debug data "$data"
response="$(_post "$data" "$MVMNET_API_URL/$ep" "" "$m" "application/json")"
;;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.