From f17114331e93434585dea48ea983641d84173124 Mon Sep 17 00:00:00 2001 From: giovannibianco Date: Mon, 10 Jun 2024 16:30:16 +0200 Subject: [PATCH] feat: modify the run script. --- src/run.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/run.sh b/src/run.sh index c1f2538..d6042f1 100755 --- a/src/run.sh +++ b/src/run.sh @@ -1,6 +1,6 @@ #!/bin/sh -senders="" +senders="" SENDER=${1:?"Sender ${senders} must be provided."} @@ -10,6 +10,9 @@ then elif [ "${SENDER}" == "slack" ] then ./notify-slack.py +elif [ "${SENDER}" == "mqtt" ] +then + ./notify-mqtt.py else echo "Sender can be one of ${senders}." exit 1