mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-03 09:44:33 +02:00
global-functions: $DownloadPackage: do not re-download
This commit is contained in:
parent
2cd8a56aa7
commit
96598b2d34
1 changed files with 5 additions and 0 deletions
|
@ -229,6 +229,11 @@
|
|||
}
|
||||
:local PkgDest [ $CleanFilePath ($PkgDir . "/" . $PkgFile) ];
|
||||
|
||||
:if ([ / file print count-only where name=$PkgDest type="package" ] > 0) do={
|
||||
$LogPrintExit info ("Package file alreasy exists.") false;
|
||||
:return true;
|
||||
}
|
||||
|
||||
:if ([ $CertificateAvailable "Let's Encrypt Authority X3" ] = false) do={
|
||||
$LogPrintExit error ("Downloading required certificate failed.") true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue