From 99aaf642b24e7e6b2291e57788c84dd1429461a7 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 20 Jan 2021 14:43:27 +0100 Subject: capsman-download-packages: handle error when creating directory --- capsman-download-packages | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3-54-g00ecf