mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-24 21:04:28 +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
|
||||
:set Dos2Unix do={
|
||||
:local Input [ :tostr $1 ];
|
||||
|
||||
:global CharacterReplace;
|
||||
|
||||
:return [ $CharacterReplace $Input ("\r\n") ("\n") ];
|
||||
:return [ :tolf [ :tostr $1 ] ];
|
||||
}
|
||||
|
||||
# download package from upgrade server
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue