diff options
author | Christian Hesse <mail@eworm.de> | 2019-02-13 09:44:45 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2019-02-13 09:44:45 +0100 |
commit | 151435ba0c0c4a1e1ea76884a35c437c8491cea7 (patch) | |
tree | cfdd35ad0cfbf83135ad6b1f9c8515861f0fe625 /capsman-download-packages | |
parent | c361caee5b1996f0d7c6cc44c159f21b3f801e95 (diff) |
capsman-download-packages: use $CleanFilePath
Diffstat (limited to 'capsman-download-packages')
-rw-r--r-- | capsman-download-packages | 6 |
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; |