Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
83768f05
Commit
83768f05
authored
May 04, 2019
by
neilpang
Browse files
reduce info message
parent
acae0ac2
Changes
1
Hide whitespace changes
Inline
Side-by-side
notify/mailgun.sh
View file @
83768f05
...
@@ -30,7 +30,7 @@ mailgun_send() {
...
@@ -30,7 +30,7 @@ mailgun_send() {
MAILGUN_REGION
=
"
${
MAILGUN_REGION
:-
$(
_readaccountconf_mutable MAILGUN_REGION
)
}
"
MAILGUN_REGION
=
"
${
MAILGUN_REGION
:-
$(
_readaccountconf_mutable MAILGUN_REGION
)
}
"
if
[
-z
"
$MAILGUN_REGION
"
]
;
then
if
[
-z
"
$MAILGUN_REGION
"
]
;
then
MAILGUN_REGION
=
""
MAILGUN_REGION
=
""
_
info
"The MAILGUN_REGION is not set, so use the default us region."
_
debug
"The MAILGUN_REGION is not set, so use the default us region."
_MAILGUN_BASE
=
"https://api.mailgun.net/v3"
_MAILGUN_BASE
=
"https://api.mailgun.net/v3"
else
else
_saveaccountconf_mutable MAILGUN_REGION
"
$MAILGUN_REGION
"
_saveaccountconf_mutable MAILGUN_REGION
"
$MAILGUN_REGION
"
...
@@ -83,7 +83,7 @@ mailgun_send() {
...
@@ -83,7 +83,7 @@ mailgun_send() {
_debug
"_msg"
"
$_msg
"
_debug
"_msg"
"
$_msg
"
_mailgun_rest POST
"
$_msg
"
_mailgun_rest POST
"
$_msg
"
if
_contains
"
$response
"
"Queued. Thank you."
;
then
if
_contains
"
$response
"
"Queued. Thank you."
;
then
_
info
"mailgun send success."
_
debug
"mailgun send success."
return
0
return
0
else
else
_err
"mailgun send error"
_err
"mailgun send error"
...
...
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