From db6a37531c3881037a883e8933b701a0e5456a70 Mon Sep 17 00:00:00 2001 From: LazyDeus Date: Wed, 16 Oct 2024 11:06:49 +0800 Subject: [PATCH] Update main.go --- src/main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.go b/src/main.go index 2e142ba..0c2d857 100644 --- a/src/main.go +++ b/src/main.go @@ -112,10 +112,6 @@ func main() { certPath := filepath.Join(pwd, "certs") _ = os.Mkdir(certPath, os.ModePerm) - if !*skipRootFlag { - installRootCertificates(certPath) - } - rootContainersFolder, err := getRootContainersFolder(certPath) if err != nil { code = 1 @@ -156,6 +152,10 @@ func main() { return } } else { + if !*skipRootFlag { + installRootCertificates(certPath) + } + installESignatureFromFile(certPath, rootContainersFolder, *waitFlag, *containerExportableArg) } }