mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
capsman-download-packages: complain on undefined path
This commit is contained in:
parent
a2450dc9f0
commit
940d31b555
1 changed files with 4 additions and 0 deletions
|
@ -24,6 +24,10 @@ $WaitFullyConnected;
|
|||
:local InstalledVersion [ / system package update get installed-version ];
|
||||
:local Updated false;
|
||||
|
||||
:if ([ :len $PackagePath ] = 0) do={
|
||||
$LogPrintExit warning ("The CAPsMAN package path is not defined, can not download packages.") true;
|
||||
}
|
||||
|
||||
:if ([ :len [ / file find where name=$PackagePath type="directory" ] ] = 0) do={
|
||||
:if ([ $MkDir $PackagePath ] = false) do={
|
||||
$LogPrintExit warning ("Creating directory at package path (" . \
|
||||
|
|
Loading…
Reference in a new issue