capsman-download-packages: use $CleanFilePath

This commit is contained in:
Christian Hesse 2019-02-13 09:44:45 +01:00
parent c361caee5b
commit 151435ba0c

View file

@ -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;