]> arthur.barton.de Git - netdata.git/commitdiff
fixed a bug that prevented dispatching alarms to multiple email recipients
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Wed, 14 Sep 2016 07:46:38 +0000 (10:46 +0300)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Wed, 14 Sep 2016 07:46:38 +0000 (10:46 +0300)
plugins.d/alarm-notify.sh

index 8f3b68209909a196c61d83070b9612f7245bec90..735b27a523a80d08dcbd50b6353e23f5f303bcb0 100755 (executable)
@@ -131,7 +131,7 @@ to_pushover="${!arr_pushover[*]}"
 
 # build the list of email recipients (email addresses)
 to_email=
-for x in "${!arr_email[*]}"
+for x in "${!arr_email[@]}"
 do
     [ ! -z "${to_email}" ] && to_email="${to_email}, "
     to_email="${to_email}${x}"