mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-25 21:34:30 +02:00
global-functions: $Dos2Unix: use :tolf
This commit is contained in:
parent
f2ca62aed0
commit
8074305b92
1 changed files with 1 additions and 5 deletions
|
@ -313,11 +313,7 @@
|
||||||
|
|
||||||
# convert line endings, DOS -> UNIX
|
# convert line endings, DOS -> UNIX
|
||||||
:set Dos2Unix do={
|
:set Dos2Unix do={
|
||||||
:local Input [ :tostr $1 ];
|
:return [ :tolf [ :tostr $1 ] ];
|
||||||
|
|
||||||
:global CharacterReplace;
|
|
||||||
|
|
||||||
:return [ $CharacterReplace $Input ("\r\n") ("\n") ];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# download package from upgrade server
|
# download package from upgrade server
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue