aboutsummaryrefslogtreecommitdiffstats
path: root/capsman-download-packages
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-01-20 14:43:27 +0100
committerGravatar Christian Hesse <mail@eworm.de>2021-01-20 14:43:27 +0100
commit99aaf642b24e7e6b2291e57788c84dd1429461a7 (patch)
treeb0607de6dc9b2b7bd7cebd46764efce6e2d9bd5d /capsman-download-packages
parente135ca1238f85afd8d9a10d2feb8fcfa3931bbfd (diff)
capsman-download-packages: handle error when creating directory
Diffstat (limited to 'capsman-download-packages')
-rw-r--r--capsman-download-packages5
1 files changed, 4 insertions, 1 deletions
diff --git a/capsman-download-packages b/capsman-download-packages
index 339c70d..b6bff3a 100644
--- a/capsman-download-packages
+++ b/capsman-download-packages
@@ -22,7 +22,10 @@ $WaitFullyConnected;
:local Updated false;
:if ([ :len [ / file find where name=$PackagePath type="directory" ] ] = 0) do={
- $MkDir $PackagePath;
+ :if ([ $MkDir $PackagePath ] = false) do={
+ $LogPrintExit warning ("Creating directory at package path (" . \
+ $PackagePath . ") failed!") true;
+ }
$LogPrintExit info ("Created directory at package path (" . $PackagePath . \
"). Please place your packages!") false;
}