Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
rschristian committed Feb 26, 2021
1 parent 02b56ef commit c4bb3d8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/create-wmr/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ sade('create-wmr [dir]', true)
let cwd = process.cwd();
if (dir) {
try {
(await fs.stat(dir)).isDirectory();
if (!opts.force) {
if ((await fs.stat(dir)).isDirectory() && !opts.force) {
process.stderr.write(
`${red(
`Refusing to overwrite directory! Please specify a different directory or use the '--force' flag`
Expand Down

0 comments on commit c4bb3d8

Please sign in to comment.