aboutsummaryrefslogtreecommitdiffstats
path: root/capsman-download-packages
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-02-21 21:36:34 +0100
committerGravatar Christian Hesse <mail@eworm.de>2021-02-21 21:36:34 +0100
commit940d31b55592ee76c75c6e9da59369127b04940f (patch)
treefd4c05b5caaea45ec179becaf19c25493b785966 /capsman-download-packages
parenta2450dc9f0906ee7d99e0108253d06ba09a75ca2 (diff)
capsman-download-packages: complain on undefined path
Diffstat (limited to 'capsman-download-packages')
-rw-r--r--capsman-download-packages4
1 files changed, 4 insertions, 0 deletions
diff --git a/capsman-download-packages b/capsman-download-packages
index 13537fa..839540e 100644
--- a/capsman-download-packages
+++ b/capsman-download-packages
@@ -24,6 +24,10 @@ $WaitFullyConnected;
:local InstalledVersion [ / system package update get installed-version ];
:local Updated false;
+:if ([ :len $PackagePath ] = 0) do={
+ $LogPrintExit warning ("The CAPsMAN package path is not defined, can not download packages.") true;
+}
+
:if ([ :len [ / file find where name=$PackagePath type="directory" ] ] = 0) do={
:if ([ $MkDir $PackagePath ] = false) do={
$LogPrintExit warning ("Creating directory at package path (" . \