sms-forward: lock against multiple invocations

This commit is contained in:
Christian Hesse 2020-10-17 13:40:01 +02:00
parent 6d9eb99e08
commit a4b237044d

View file

@ -10,10 +10,13 @@
:global LogPrintExit;
:global MailServerIsUp;
:global ScriptLock;
:global SendNotification;
:global SymbolForNotification;
:global WaitFullyConnected;
$ScriptLock "sms-forward";
:if ([ / tool sms get receive-enabled ] = false) do={
$LogPrintExit warning "Receiving of SMS is not enabled." true;
}