Reorder ntfy parallel execution and wait after gmail and telegram notifications.
This commit is contained in:
@@ -74,18 +74,18 @@ send_telegram() {
|
||||
}
|
||||
|
||||
# Execute in parallel
|
||||
send_ntfy &
|
||||
PID_NTFY=$!
|
||||
|
||||
send_gmail &
|
||||
PID_GMAIL=$!
|
||||
|
||||
send_telegram &
|
||||
PID_TG=$!
|
||||
|
||||
send_ntfy &
|
||||
PID_NTFY=$!
|
||||
|
||||
# Wait for completion
|
||||
wait $PID_NTFY
|
||||
wait $PID_GMAIL
|
||||
wait $PID_TG
|
||||
wait $PID_NTFY
|
||||
|
||||
echo "All notifications processed."
|
||||
Reference in New Issue
Block a user