aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-04-07 12:54:46 +0200
committerGravatar Christian Hesse <mail@eworm.de>2020-04-07 12:54:46 +0200
commit96598b2d342dcd25074272a47239588a8b6b894b (patch)
tree8254bc25bb74285d532a14eb492a2fc81e472da3
parent2cd8a56aa7d33714ff24c3b473931d560e67235f (diff)
global-functions: $DownloadPackage: do not re-download
-rw-r--r--global-functions5
1 files changed, 5 insertions, 0 deletions
diff --git a/global-functions b/global-functions
index 747dd25..145ec09 100644
--- a/global-functions
+++ b/global-functions
@@ -229,6 +229,11 @@
}
:local PkgDest [ $CleanFilePath ($PkgDir . "/" . $PkgFile) ];
+ :if ([ / file print count-only where name=$PkgDest type="package" ] > 0) do={
+ $LogPrintExit info ("Package file alreasy exists.") false;
+ :return true;
+ }
+
:if ([ $CertificateAvailable "Let's Encrypt Authority X3" ] = false) do={
$LogPrintExit error ("Downloading required certificate failed.") true;
}