Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
f665c73b
Commit
f665c73b
authored
Nov 29, 2020
by
Lorenz Stechauner
Browse files
World4You fixed return value
parent
3c309df6
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_world4you.sh
View file @
f665c73b
...
@@ -56,7 +56,7 @@ AddDnsRecordForm[uniqueFormIdTTL]=$formidttl&AddDnsRecordForm[_token]=$form_toke
...
@@ -56,7 +56,7 @@ AddDnsRecordForm[uniqueFormIdTTL]=$formidttl&AddDnsRecordForm[_token]=$form_toke
return
0
return
0
else
else
_err
"
$(
_head_n 1 <
"
$HTTP_HEADER
"
)
"
_err
"
$(
_head_n 1 <
"
$HTTP_HEADER
"
)
"
return
2
return
1
fi
fi
}
}
...
@@ -108,7 +108,7 @@ DeleteDnsRecordForm[_token]=$form_token"
...
@@ -108,7 +108,7 @@ DeleteDnsRecordForm[_token]=$form_token"
return
0
return
0
else
else
_err
"
$(
_head_n 1 <
"
$HTTP_HEADER
"
)
"
_err
"
$(
_head_n 1 <
"
$HTTP_HEADER
"
)
"
return
2
return
1
fi
fi
}
}
...
@@ -125,7 +125,7 @@ _login() {
...
@@ -125,7 +125,7 @@ _login() {
_err
"You didn't specify world4you username and password yet."
_err
"You didn't specify world4you username and password yet."
_err
"Usage: export WORLD4YOU_USERNAME=<name>"
_err
"Usage: export WORLD4YOU_USERNAME=<name>"
_err
"Usage: export WORLD4YOU_PASSWORD=<password>"
_err
"Usage: export WORLD4YOU_PASSWORD=<password>"
return
2
return
1
fi
fi
_saveaccountconf_mutable WORLD4YOU_USERNAME
"
$WORLD4YOU_USERNAME
"
_saveaccountconf_mutable WORLD4YOU_USERNAME
"
$WORLD4YOU_USERNAME
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment