From d6dcd826a99cf18437debd0a966f13d9b47c6f9e Mon Sep 17 00:00:00 2001 From: phoenix Date: Sat, 6 Jun 2026 14:20:14 -0400 Subject: [PATCH] Saving notify messages script --- notify_messages.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 notify_messages.sh diff --git a/notify_messages.sh b/notify_messages.sh new file mode 100755 index 0000000..48d6efb --- /dev/null +++ b/notify_messages.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +root_dir=`pwd` + +echo "Root directory: $root_dir" + +if [[ ! -d "$root_dir" ]]; then + echo "Root directory does not exist. Exiting" + exit +fi + +config_path="config.json" +numbers_part="1" +numbers_path="numbers/numbers-notify-$numbers_part.json" +type_message="json" +messages_path="messages/message-notify-$numbers_part.json" +send_message="True" + +echo "Changing directory to $root_dir" +cd $root_dir + +./sender "$config_path" "$numbers_path" "$messages_path" + +echo "Done"