mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-31 00:04:51 +02:00
capsman-download-packages: use $CleanFilePath
This commit is contained in:
parent
c361caee5b
commit
151435ba0c
1 changed files with 2 additions and 4 deletions
|
@ -8,11 +8,9 @@
|
|||
# download and cleanup packages for CAP installation from CAPsMAN
|
||||
|
||||
:global DownloadPackage;
|
||||
:global CleanFilePath;
|
||||
|
||||
:local PackagePath [ / caps-man manager get package-path ];
|
||||
:if ([ :pick $PackagePath 0 ] = "/") do={
|
||||
:set PackagePath [ :pick $PackagePath 1 [ :len $PackagePath ] ];
|
||||
}
|
||||
:local PackagePath [ $CleanFilePath [ / caps-man manager get package-path ] ];
|
||||
:local InstalledVersion [ / system package update get installed-version ];
|
||||
:local Updated false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue