mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
global-functions: $DownloadPackage: re-introduce check for valid package
Even if fetch tool does its job right now... Chances are that the download servers have corrupted or empty files.
This commit is contained in:
@ -200,6 +200,11 @@
|
|||||||
:return false;
|
:return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
: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