fix: correct grammatical errors
This commit is contained in:
1 file changed
+6
-6
+6
-6
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user