aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2018-12-28 19:39:59 +0100
committerGravatar Christian Hesse <mail@eworm.de>2018-12-28 22:56:29 +0100
commit3cdd0fb94ba1c1ace47f3833ebaea46ff6cfb844 (patch)
tree571835749c4b67221be4e1f5c50ce46b36429d83
parentea5546443478740b89070ca38ee682ea4cd1d0f8 (diff)
global-functions: properly define global functions
-rw-r--r--collect-wireless-mac.capsman1
-rw-r--r--collect-wireless-mac.local1
-rw-r--r--collect-wireless-mac.template1
-rw-r--r--global-functions2
4 files changed, 2 insertions, 3 deletions
diff --git a/collect-wireless-mac.capsman b/collect-wireless-mac.capsman
index ae4da2b..c1af7c9 100644
--- a/collect-wireless-mac.capsman
+++ b/collect-wireless-mac.capsman
@@ -8,7 +8,6 @@
:global "identity";
-:global CertificateAvailable;
:global GetMacVendor;
:global SendNotification;
diff --git a/collect-wireless-mac.local b/collect-wireless-mac.local
index 303cb53..ef59f3a 100644
--- a/collect-wireless-mac.local
+++ b/collect-wireless-mac.local
@@ -8,7 +8,6 @@
:global "identity";
-:global CertificateAvailable;
:global GetMacVendor;
:global SendNotification;
diff --git a/collect-wireless-mac.template b/collect-wireless-mac.template
index fc4b3fb..2f108a3 100644
--- a/collect-wireless-mac.template
+++ b/collect-wireless-mac.template
@@ -9,7 +9,6 @@
:global "identity";
-:global CertificateAvailable;
:global GetMacVendor;
:global SendNotification;
diff --git a/global-functions b/global-functions
index c931a26..d4c46ae 100644
--- a/global-functions
+++ b/global-functions
@@ -97,6 +97,8 @@
:global GetMacVendor do={
:local mac [ :tostr $1 ];
+ :global CertificateAvailable;
+
:do {
:local vendor;
$CertificateAvailable "Let's Encrypt Authority X3" "letsencrypt";