mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-23 10:08:40 +02: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…
Add table
Add a link
Reference in a new issue