fix: correct grammatical errors

This commit is contained in:
ttionya committed 2024-07-21 00:07:31 +08:00
1 parent beee466c80
commit 5d635bf079
1 file changed
+6 -6
+6 -6
View File
@@ -96,9 +96,9 @@ function send_mail() {
echo "$2" | mail ${MAIL_VERBOSE} -s "$1" ${MAIL_SMTP_VARIABLES} "${MAIL_TO}" echo "$2" | mail ${MAIL_VERBOSE} -s "$1" ${MAIL_SMTP_VARIABLES} "${MAIL_TO}"
if [[ $? != 0 ]]; then if [[ $? != 0 ]]; then
color red "mail sending failed" color red "mail sending has failed"
else else
color blue "mail send was successfully" color blue "mail has been sent successfully"
fi fi
} }
@@ -131,15 +131,15 @@ function send_mail_content() {
# ping name # ping name
######################################## ########################################
function send_ping() { function send_ping() {
if [[ -z "${1}" ]]; then if [[ -z "$1" ]]; then
return return
fi fi
wget "${1}" -T 15 -t 10 -O /dev/null -q wget "$1" -T 15 -t 10 -O /dev/null -q
if [[ $? != 0 ]]; then if [[ $? != 0 ]]; then
color red "${2} ping sending failed" color red "$2 ping sending has failed"
else else
color blue "${2} ping send was successfully" color blue "$2 ping has been sent successfully"
fi fi
} }