summaryrefslogtreecommitdiffstats
path: root/plugins.d
diff options
context:
space:
mode:
authorGuillaume Hospital <guillaumeh_bib_com>2018-07-10 14:01:03 +0200
committerGuillaume Hospital <guillaumeh_bib_com>2018-07-10 14:01:03 +0200
commit546e3601cd9a508a88b5cba64a0d4dad0a77112f (patch)
treef1460879d6cb0b9074ec26d6411e7fce5af72aad /plugins.d
parentbcff0759e200534ade2b864babc9652d419a57f4 (diff)
updating code based on cadacy report
Diffstat (limited to 'plugins.d')
-rwxr-xr-xplugins.d/alarm-notify.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins.d/alarm-notify.sh b/plugins.d/alarm-notify.sh
index c936482a63..3f4b59aab2 100755
--- a/plugins.d/alarm-notify.sh
+++ b/plugins.d/alarm-notify.sh
@@ -1403,7 +1403,7 @@ EOF
)"
# Replacing in the webhook CHANNEL string by the MS Teams channel name from conf file.
- webhook=`echo $1 | sed 's/CHANNEL/'${channel}'/g'`
+ webhook=$(echo "${webhook//CHANNEL/${channel}})"
httpcode=$(docurl -H "Content-Type: application/json" -d "${payload}" "${webhook}")