From 996c8d9d08a072c8ee7f7bd6a9b698cc395f760f Mon Sep 17 00:00:00 2001 From: Mohammed Al Sahaf Date: Sun, 20 Feb 2022 01:26:52 +0300 Subject: [PATCH] fix: skip cleanup if build is skipped (#83) --- cmd/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/main.go b/cmd/main.go index b35e278..96dd941 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -37,7 +37,7 @@ var ( caddyVersion = os.Getenv("CADDY_VERSION") raceDetector = os.Getenv("XCADDY_RACE_DETECTOR") == "1" skipBuild = os.Getenv("XCADDY_SKIP_BUILD") == "1" - skipCleanup = os.Getenv("XCADDY_SKIP_CLEANUP") == "1" + skipCleanup = os.Getenv("XCADDY_SKIP_CLEANUP") == "1" || skipBuild buildDebugOutput = os.Getenv("XCADDY_DEBUG") == "1" )