mirror of
https://github.com/pothi/mikrotik-scripts.git
synced 2025-06-21 13:49:01 +02:00
Add test scripts and backup-buttons script
This commit is contained in:
parent
bf07a55ca5
commit
a1a0489377
6 changed files with 79 additions and 0 deletions
7
test-snippets/test-empty-env-var
Normal file
7
test-snippets/test-empty-env-var
Normal file
|
@ -0,0 +1,7 @@
|
|||
:global adminEmail
|
||||
|
||||
:if ([:typeof $adminEmail] = "nothing" || $adminEmail = "") do={ :log error "Admin Email is not defined or nil."; :error "Admin Email is not defined or nil."; } else={ :put "We are good to proceed!" }
|
||||
|
||||
# :if ($adminEmail = "") do={ :log error "Admin Email is nil."; :error "Admin Email is nil."; }
|
||||
|
||||
:put "This should not be visible if admin email is not defined or nil!"
|
Loading…
Add table
Add a link
Reference in a new issue