aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions
diff options
context:
space:
mode:
Diffstat (limited to 'global-functions')
-rw-r--r--global-functions10
1 files changed, 10 insertions, 0 deletions
diff --git a/global-functions b/global-functions
index 0e1530c..73a6d37 100644
--- a/global-functions
+++ b/global-functions
@@ -36,6 +36,7 @@
:global ScriptInstallUpdate;
:global MailServerIsUp;
:global TimeIsSync;
+:global WaitTimeSync;
# url encoding
:set UrlEncode do={
@@ -474,3 +475,12 @@
:return false;
}
+
+# wait for time to become synced
+:set WaitTimeSync do={
+ :global TimeIsSync;
+
+ :while ([ $TimeIsSync ] = false) do={
+ :delay 1s;
+ }
+}