mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04: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:
parent
70798de8f0
commit
ab4aef4dfb
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue