From 96598b2d342dcd25074272a47239588a8b6b894b Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 7 Apr 2020 12:54:46 +0200 Subject: global-functions: $DownloadPackage: do not re-download --- global-functions | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'global-functions') 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; } -- cgit v1.2.3-70-g09d2