aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-07-16 12:23:02 +0200
committerGravatar Christian Hesse <mail@eworm.de>2024-07-16 13:50:22 +0200
commit2d42fed621f5bb79a187774afe46c04e06b9c71b (patch)
treeaddfe69696ccc670e123f1dbcd9771dd1264128f
parent0101b56bff0cfad4043c4e86aa7e68325530eca3 (diff)
global-functions: $ScriptInstallUpdate: forcibly convert to LF...
... to make sure we do not have unintended CRLF line breaks.
-rw-r--r--global-functions.rsc4
1 files changed, 2 insertions, 2 deletions
diff --git a/global-functions.rsc b/global-functions.rsc
index 44b3abe..2c7c87c 100644
--- a/global-functions.rsc
+++ b/global-functions.rsc
@@ -4,7 +4,7 @@
# Michael Gisbers <michael@gisbers.de>
# https://git.eworm.de/cgit/routeros-scripts/about/COPYING.md
#
-# requires RouterOS, version=7.13
+# requires RouterOS, version=7.14
#
# global functions
# https://git.eworm.de/cgit/routeros-scripts/about/
@@ -1060,7 +1060,7 @@
:local Result [ /tool/fetch check-certificate=yes-without-crl \
http-header-field=({ [ $FetchUserAgentStr $0 ] }) $Url output=user as-value ];
:if ($Result->"status" = "finished") do={
- :set SourceNew ($Result->"data");
+ :set SourceNew [ :tolf ($Result->"data") ];
}
} on-error={
:if ($ScriptVal->"source" = "#!rsc by RouterOS\n") do={