diff --git a/cmd/main.go b/cmd/main.go index 432f65a..0a3b2f4 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -164,10 +164,11 @@ func runBuild(ctx context.Context, args []string) error { } func getCaddyOutputFile() string { + f := "." + string(filepath.Separator) + "caddy" if runtime.GOOS == "windows" { - return "caddy.exe" + f += ".exe" } - return "." + string(filepath.Separator) + "caddy" + return f } func runDev(ctx context.Context, args []string) error {