aboutsummaryrefslogtreecommitdiffstats
path: root/sms-forward
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-10-17 13:40:01 +0200
committerGravatar Christian Hesse <mail@eworm.de>2020-10-17 13:40:01 +0200
commita4b237044d9928109bc925fe565a262ed30dbfcd (patch)
tree1a4532fed39279c4d572a2c3af0ef987367a9561 /sms-forward
parent6d9eb99e08fb0a1ac8dc03213edfd5f590655ee4 (diff)
sms-forward: lock against multiple invocations
Diffstat (limited to 'sms-forward')
-rw-r--r--sms-forward3
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;
}