aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-02-13 09:44:45 +0100
committerGravatar Christian Hesse <mail@eworm.de>2019-02-13 09:44:45 +0100
commit151435ba0c0c4a1e1ea76884a35c437c8491cea7 (patch)
treecfdd35ad0cfbf83135ad6b1f9c8515861f0fe625
parentc361caee5b1996f0d7c6cc44c159f21b3f801e95 (diff)
capsman-download-packages: use $CleanFilePath
-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;