diff options
author | Christian Hesse <mail@eworm.de> | 2021-01-20 14:43:27 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2021-01-20 14:43:27 +0100 |
commit | 99aaf642b24e7e6b2291e57788c84dd1429461a7 (patch) | |
tree | b0607de6dc9b2b7bd7cebd46764efce6e2d9bd5d /capsman-download-packages | |
parent | e135ca1238f85afd8d9a10d2feb8fcfa3931bbfd (diff) |
capsman-download-packages: handle error when creating directory
Diffstat (limited to 'capsman-download-packages')
-rw-r--r-- | capsman-download-packages | 5 |
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; } |