global-functions: $Dos2Unix: use :tolf

This commit is contained in:
Christian Hesse 2024-07-11 23:09:32 +02:00
parent f2ca62aed0
commit 8074305b92

View file

@ -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