Skip to content

Commit

Permalink
feat: modify the run script.
Browse files Browse the repository at this point in the history
  • Loading branch information
giovannibianco committed Jun 10, 2024
1 parent db530de commit f171143
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

senders="<slack|email>"
senders="<slack|email|mqtt>"

SENDER=${1:?"Sender ${senders} must be provided."}

Expand All @@ -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
Expand Down

0 comments on commit f171143

Please sign in to comment.