|
|
@@ -46,19 +46,19 @@ fi
|
|
|
if [ "${emailnotification}" == "on" ]||[ "${emailalert}" == "on" ]&&[ -n "${email}" ]; then
|
|
|
alert_email.sh
|
|
|
elif [ "${emailnotification}" != "on" ]||[ "${emailalert}" != "on" ]&&[ "${selfname}" == "command_test_alert.sh" ]; then
|
|
|
- fn_print_warn "Email alerts not enabled"
|
|
|
+ fn_print_warn_nl "Email alerts not enabled"
|
|
|
fn_script_log_warn "Email alerts not enabled"
|
|
|
elif [ -z "${email}" ]&&[ "${selfname}" == "command_test_alert.sh" ]; then
|
|
|
- fn_print_error "Email not set"
|
|
|
+ fn_print_error_nl "Email not set"
|
|
|
fn_script_log_error "Email not set"
|
|
|
fi
|
|
|
|
|
|
if [ "${pushbulletalert}" == "on" ]&&[ -n "${pushbullettoken}" ]; then
|
|
|
alert_pushbullet.sh
|
|
|
elif [ "${pushbulletalert}" != "on" ]&&[ "${selfname}" == "command_test_alert.sh" ]; then
|
|
|
- fn_print_warn "Pushbullet alerts not enabled"
|
|
|
+ fn_print_warn_nl "Pushbullet alerts not enabled"
|
|
|
fn_script_log_warn "Pushbullet alerts not enabled"
|
|
|
elif [ -z "${pushbullettoken}" ]&&[ "${selfname}" == "command_test_alert.sh" ]; then
|
|
|
- fn_print_error "Pushbullet token not set"
|
|
|
+ fn_print_error_nl "Pushbullet token not set"
|
|
|
fn_script_error_warn "Pushbullet token not set"
|
|
|
fi
|