@@ -104,10 +104,10 @@ elif [ "${postalert}" != "on" ]&&[ "${function_selfname}" == "command_test_alert
104
104
fn_print_warn_nl " More Info not enabled"
105
105
fn_script_log_warn " More Info alerts not enabled"
106
106
elif [ -z " ${posttarget} " ]&& [ " ${function_selfname} " == " command_test_alert.sh" ]; then
107
- fn_print_error_nl " posttarget not set"
107
+ fn_print_error " posttarget not set"
108
108
fn_script_error " posttarget not set"
109
109
elif [ -z " ${postdays} " ]&& [ " ${function_selfname} " == " command_test_alert.sh" ]; then
110
- fn_print_error_nl " postdays not set"
110
+ fn_print_error " postdays not set"
111
111
fn_script_error " postdays not set"
112
112
fi
113
113
@@ -117,7 +117,7 @@ elif [ "${discordalert}" != "on" ]&&[ "${function_selfname}" == "command_test_al
117
117
fn_print_warn_nl " Discord alerts not enabled"
118
118
fn_script_log_warn " Discord alerts not enabled"
119
119
elif [ -z " ${discordtoken} " ]&& [ " ${function_selfname} " == " command_test_alert.sh" ]; then
120
- fn_print_error_nl " Discord token not set"
120
+ fn_print_error " Discord token not set"
121
121
echo -e " * https://docs.linuxgsm.com/alerts/discord"
122
122
fn_script_error " Discord token not set"
123
123
fi
@@ -128,7 +128,7 @@ elif [ "${emailalert}" != "on" ]&&[ "${function_selfname}" == "command_test_aler
128
128
fn_print_warn_nl " Email alerts not enabled"
129
129
fn_script_log_warn " Email alerts not enabled"
130
130
elif [ -z " ${email} " ]&& [ " ${function_selfname} " == " command_test_alert.sh" ]; then
131
- fn_print_error_nl " Email not set"
131
+ fn_print_error " Email not set"
132
132
fn_script_log_error " Email not set"
133
133
fi
134
134
@@ -138,7 +138,7 @@ elif [ "${iftttalert}" != "on" ]&&[ "${function_selfname}" == "command_test_aler
138
138
fn_print_warn_nl " IFTTT alerts not enabled"
139
139
fn_script_log_warn " IFTTT alerts not enabled"
140
140
elif [ -z " ${ifttttoken} " ]&& [ " ${function_selfname} " == " command_test_alert.sh" ]; then
141
- fn_print_error_nl " IFTTT token not set"
141
+ fn_print_error " IFTTT token not set"
142
142
echo -e " * https://docs.linuxgsm.com/alerts/ifttt"
143
143
fn_script_error " IFTTT token not set"
144
144
fi
@@ -149,7 +149,7 @@ elif [ "${mailgunalert}" != "on" ]&&[ "${function_selfname}" == "command_test_al
149
149
fn_print_warn_nl " Mailgun alerts not enabled"
150
150
fn_script_log_warn " Mailgun alerts not enabled"
151
151
elif [ -z " ${mailguntoken} " ]&& [ " ${function_selfname} " == " command_test_alert.sh" ]; then
152
- fn_print_error_nl " Mailgun token not set"
152
+ fn_print_error " Mailgun token not set"
153
153
echo -e " * https://docs.linuxgsm.com/alerts/mailgun"
154
154
fn_script_error " Mailgun token not set"
155
155
fi
@@ -160,7 +160,7 @@ elif [ "${pushbulletalert}" != "on" ]&&[ "${function_selfname}" == "command_test
160
160
fn_print_warn_nl " Pushbullet alerts not enabled"
161
161
fn_script_log_warn " Pushbullet alerts not enabled"
162
162
elif [ -z " ${pushbullettoken} " ]&& [ " ${function_selfname} " == " command_test_alert.sh" ]; then
163
- fn_print_error_nl " Pushbullet token not set"
163
+ fn_print_error " Pushbullet token not set"
164
164
echo -e " * https://docs.linuxgsm.com/alerts/pushbullet"
165
165
fn_script_error " Pushbullet token not set"
166
166
fi
@@ -171,7 +171,7 @@ elif [ "${pushoveralert}" != "on" ]&&[ "${function_selfname}" == "command_test_a
171
171
fn_print_warn_nl " Pushover alerts not enabled"
172
172
fn_script_log_warn " Pushover alerts not enabled"
173
173
elif [ -z " ${pushovertoken} " ]&& [ " ${function_selfname} " == " command_test_alert.sh" ]; then
174
- fn_print_error_nl " Pushover token not set"
174
+ fn_print_error " Pushover token not set"
175
175
echo -e " * https://docs.linuxgsm.com/alerts/pushover"
176
176
fn_script_error " Pushover token not set"
177
177
fi
@@ -182,11 +182,11 @@ elif [ "${telegramalert}" != "on" ]&&[ "${function_selfname}" == "command_test_a
182
182
fn_print_warn_nl " Telegram Messages not enabled"
183
183
fn_script_log_warn " Telegram Messages not enabled"
184
184
elif [ -z " ${telegramtoken} " ]&& [ " ${function_selfname} " == " command_test_alert.sh" ]; then
185
- fn_print_error_nl " Telegram token not set."
185
+ fn_print_error " Telegram token not set."
186
186
echo -e " * https://docs.linuxgsm.com/alerts/telegram"
187
187
fn_script_error " Telegram token not set."
188
188
elif [ -z " ${telegramchatid} " ]&& [ " ${function_selfname} " == " command_test_alert.sh" ]; then
189
- fn_print_error_nl " Telegram chat id not set."
189
+ fn_print_error " Telegram chat id not set."
190
190
echo -e " * https://docs.linuxgsm.com/alerts/telegram"
191
191
fn_script_error " Telegram chat id not set."
192
192
fi
@@ -197,7 +197,7 @@ elif [ "${slackalert}" != "on" ]&&[ "${function_selfname}" == "command_test_aler
197
197
fn_print_warn_nl " Slack alerts not enabled"
198
198
fn_script_log_warn " Slack alerts not enabled"
199
199
elif [ -z " ${slacktoken} " ]&& [ " ${function_selfname} " == " command_test_alert.sh" ]; then
200
- fn_print_error_nl " Slack token not set"
200
+ fn_print_error " Slack token not set"
201
201
echo -e " * https://docs.linuxgsm.com/alerts/slack"
202
202
fn_script_error " Slack token not set"
203
203
fi
0 commit comments