mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
global-functions: remove extra check in $DownloadPackage
Should be fixed in RouterOS 6.44rc1 with changelog: *) fetch - improved file downloading to slow memory;
This commit is contained in:
@@ -178,13 +178,6 @@
|
|||||||
:return false;
|
:return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Fetch tool in RouterOS has an issue where it truncates files on slow
|
|
||||||
# storage. Detect that... TODO: Remove when fixed. (Ticket#2019021122006199)
|
|
||||||
:if ([ / file get [ find where name=$PkgDest ] type ] != "package") do={
|
|
||||||
/ file remove [ find where name=$PkgDest ];
|
|
||||||
:return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
:return true;
|
:return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user