mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-09 20:54:34 +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
|
# download and cleanup packages for CAP installation from CAPsMAN
|
||||||
|
|
||||||
:global DownloadPackage;
|
:global DownloadPackage;
|
||||||
|
:global CleanFilePath;
|
||||||
|
|
||||||
:local PackagePath [ / caps-man manager get package-path ];
|
:local PackagePath [ $CleanFilePath [ / caps-man manager get package-path ] ];
|
||||||
:if ([ :pick $PackagePath 0 ] = "/") do={
|
|
||||||
:set PackagePath [ :pick $PackagePath 1 [ :len $PackagePath ] ];
|
|
||||||
}
|
|
||||||
:local InstalledVersion [ / system package update get installed-version ];
|
:local InstalledVersion [ / system package update get installed-version ];
|
||||||
:local Updated false;
|
:local Updated false;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue