diff options
author | Christian Hesse <mail@eworm.de> | 2020-08-26 09:23:56 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2020-08-26 09:29:52 +0200 |
commit | ff5cdc30193ba69944f6772f213e63ea00678861 (patch) | |
tree | d73fac7cd08f5463c8a432dd5153695ae0cf2cf1 /INITIAL-COMMANDS.md | |
parent | 92ca31a41df332171d1f2dcf08c75db570b12234 (diff) |
[ ... print count-only ...] -> [ :len [ ... find ... ] ]
Using 'print count-only' always prints a number to terminal, even if the
value is evaluated in a condition or assigned to a variable. This can be
quite annoying. Behavior will not chance (SUP-25503), so replacing the
code...
Diffstat (limited to 'INITIAL-COMMANDS.md')
-rw-r--r-- | INITIAL-COMMANDS.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/INITIAL-COMMANDS.md b/INITIAL-COMMANDS.md index e9889d2..597ddb6 100644 --- a/INITIAL-COMMANDS.md +++ b/INITIAL-COMMANDS.md @@ -10,7 +10,7 @@ procedure please follow [the long way in detail](README.md#the-long-way-in-detai / tool fetch "https://git.eworm.de/cgit/routeros-scripts/plain/certs/Let%27s%20Encrypt%20Authority%20X3.pem" dst-path="letsencrypt.pem"; :delay 1s; / certificate import file-name=letsencrypt.pem passphrase=""; - :if ([ / certificate print count-only where fingerprint="96bcec06264976f37460779acf28c5a7cfe8a3c0aae11a8ffcee05c0bddf08c6" or fingerprint="731d3d9cfaa061487a1d71445a42f67df0afca2a6c2d2f98ff7b3ce112b1f568" or fingerprint="0687260331a72403d909f105e69bcf0d32e1bd2493ffc6d9206d11bcd6770739" ] != 3) do={ + :if ([ :len [ / certificate find where fingerprint="96bcec06264976f37460779acf28c5a7cfe8a3c0aae11a8ffcee05c0bddf08c6" or fingerprint="731d3d9cfaa061487a1d71445a42f67df0afca2a6c2d2f98ff7b3ce112b1f568" or fingerprint="0687260331a72403d909f105e69bcf0d32e1bd2493ffc6d9206d11bcd6770739" ] ] != 3) do={ :error "Something is wrong with your certificates!"; } / file remove "letsencrypt.pem"; |