Skip to content

Commit

Permalink
fix: Remove tmp folder even if answer is "No"
Browse files Browse the repository at this point in the history
  • Loading branch information
devkcud committed Jan 14, 2024
1 parent 47f5d61 commit 3345f1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/mk/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ func main() {

if utils.YesNoPrompt("Preview mode. Do you want to continue?", false) {
utils.CopyFolder(previewFolder, previousWd)
os.RemoveAll(previewFolder)
}

os.RemoveAll(previewFolder)
}
}

0 comments on commit 3345f1b

Please sign in to comment.