diff options
author | Christian Hesse <mail@eworm.de> | 2020-10-17 13:40:01 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2020-10-17 13:40:01 +0200 |
commit | a4b237044d9928109bc925fe565a262ed30dbfcd (patch) | |
tree | 1a4532fed39279c4d572a2c3af0ef987367a9561 /sms-forward | |
parent | 6d9eb99e08fb0a1ac8dc03213edfd5f590655ee4 (diff) |
sms-forward: lock against multiple invocations
Diffstat (limited to 'sms-forward')
-rw-r--r-- | sms-forward | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sms-forward b/sms-forward index bd750b6..bd1f9d6 100644 --- a/sms-forward +++ b/sms-forward @@ -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; } |