dry-run no longer creates directories

Closes #5
This commit is contained in:
Felipe Martin 2020-11-14 23:30:57 +01:00
parent 6ac8d9e684
commit dcc450d583
Signed by: fmartingr
GPG Key ID: 716BC147715E716F
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}