diff --git a/lgsm/functions/alert.sh b/lgsm/functions/alert.sh index 5fd907e08..07abe0fb7 100644 --- a/lgsm/functions/alert.sh +++ b/lgsm/functions/alert.sh @@ -4,8 +4,8 @@ # Website: https://linuxgsm.com # Description: Overall function for managing alerts. -commandname="ALERT" -commandaction="Alert" +local commandname="ALERT" +local commandaction="Alert" fn_alert_log(){ info_distro.sh diff --git a/lgsm/functions/alert_email.sh b/lgsm/functions/alert_email.sh index cb7e1741d..c7c09b5e4 100644 --- a/lgsm/functions/alert_email.sh +++ b/lgsm/functions/alert_email.sh @@ -4,8 +4,8 @@ # Website: https://linuxgsm.com # Description: Sends email alert. -commandname="ALERT" -commandaction="Alert" +local commandname="ALERT" +local commandaction="Alert" function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" fn_print_dots "Sending Email alert: ${email}" diff --git a/lgsm/functions/alert_ifttt.sh b/lgsm/functions/alert_ifttt.sh index f21c7ad1c..bf94cb8a3 100644 --- a/lgsm/functions/alert_ifttt.sh +++ b/lgsm/functions/alert_ifttt.sh @@ -4,8 +4,8 @@ # Website: https://linuxgsm.com # Description: Sends IFTTT alert. -commandname="ALERT" -commandaction="Alert" +local commandname="ALERT" +local commandaction="Alert" function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" json=$(cat <