Files
sender/send_messages.sh
T
phoenixandphoenix 6bd1b22e68 tsk-7: Change name of repo (#8)
Closes #7

Reviewed-on: #8
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
2025-11-09 03:11:33 +00:00

25 lines
474 B
Bash
Executable File

#!/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="0"
numbers_path="numbers/numbers-$numbers_part.json"
type_message="json"
messages_path="messages/message-$numbers_part.json"
send_message="True"
echo "Changing directory to $root_dir"
cd $root_dir
./twilio_sender "$config_path" "$numbers_path" "$messages_path"
echo "Done"