aboutsummaryrefslogtreecommitdiffstats
path: root/capsman-download-packages
diff options
context:
space:
mode:
Diffstat (limited to 'capsman-download-packages')
-rw-r--r--capsman-download-packages6
1 files changed, 2 insertions, 4 deletions
diff --git a/capsman-download-packages b/capsman-download-packages
index b77b891..d11dae3 100644
--- a/capsman-download-packages
+++ b/capsman-download-packages
@@ -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;