mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-13 19:44:28 +02: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…
Add table
Add a link
Reference in a new issue