Skip to content

Commit c6d4db6

Browse files
committed
fix(checkFolder): skip check
1 parent 188649a commit c6d4db6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/cli.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,11 @@ const checkFolder = async (targetDir, argv) => {
6565
if (!folderExists) {
6666
return true;
6767
}
68+
if (argv["yes"] === true) {
69+
return true;
70+
}
6871
const folderFiles = await fs.readdir(targetDir);
69-
if (argv["yes"] !== true && folderFiles.length !== -1) {
72+
if (folderFiles.length !== -1) {
7073
const { override } = await prompts({
7174
type: "confirm",
7275
name: "override",

0 commit comments

Comments
 (0)