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
|
# Execute in parallel
|
||||||
send_ntfy &
|
|
||||||
PID_NTFY=$!
|
|
||||||
|
|
||||||
send_gmail &
|
send_gmail &
|
||||||
PID_GMAIL=$!
|
PID_GMAIL=$!
|
||||||
|
|
||||||
send_telegram &
|
send_telegram &
|
||||||
PID_TG=$!
|
PID_TG=$!
|
||||||
|
|
||||||
|
send_ntfy &
|
||||||
|
PID_NTFY=$!
|
||||||
|
|
||||||
# Wait for completion
|
# Wait for completion
|
||||||
wait $PID_NTFY
|
|
||||||
wait $PID_GMAIL
|
wait $PID_GMAIL
|
||||||
wait $PID_TG
|
wait $PID_TG
|
||||||
|
wait $PID_NTFY
|
||||||
|
|
||||||
echo "All notifications processed."
|
echo "All notifications processed."
|
||||||
Reference in New Issue
Block a user