Merge pull request #126 from LeeHyungGeun/bugfix/omi-cli-empty-directory
fixed remove line-break bug in OSX
This commit is contained in:
commit
0eb9906dc3
|
@ -40,7 +40,7 @@ function init(args) {
|
|||
process.stdin.resume();
|
||||
process.stdin.setEncoding("utf-8");
|
||||
process.stdin.on("data", chunk => {
|
||||
chunk = chunk.replace(/\s\n|\r\n/g, "");
|
||||
chunk = chunk.replace(/\s\n|\r\n|\n/g, "");
|
||||
if (chunk !== "y" && chunk !== "Y") {
|
||||
process.exit(0);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue