From dcc450d58370657b6dc1d37b0a970fc6f1540c18 Mon Sep 17 00:00:00 2001 From: Felipe Martin Date: Sat, 14 Nov 2020 23:30:57 +0100 Subject: [PATCH] dry-run no longer creates directories Closes #5 --- pkg/cli/cli.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cli/cli.go b/pkg/cli/cli.go index 1655fee..febd584 100644 --- a/pkg/cli/cli.go +++ b/pkg/cli/cli.go @@ -60,7 +60,7 @@ func processGames(games []games.Game, outputPath string, dryRun bool) { } // Check if folder exists - if _, err := os.Stat(destinationPath); os.IsNotExist(err) { + if _, err := os.Stat(destinationPath); os.IsNotExist(err) && !dryRun { os.MkdirAll(destinationPath, 0711) }