Skip to content

Commit

Permalink
Corrected bug when asking the user again for a directory
Browse files Browse the repository at this point in the history
  • Loading branch information
dlmr committed Sep 2, 2016
1 parent 241c39d commit 5c5ea10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ function askForDirectory(directory, resolve) {
fs.mkdir(directoryPath, (err) => {
if (err) {
log.warn('The directory did already exists or was not empty.\n');
askForDirectory(resolve);
askForDirectory(directory, resolve);
} else {
resolve(directoryPath);
}
Expand Down

0 comments on commit 5c5ea10

Please sign in to comment.