Skip to content

Commit

Permalink
fix: fix missing first char on display when create project, fix think…
Browse files Browse the repository at this point in the history
  • Loading branch information
welefen committed Feb 3, 2016
1 parent d30e304 commit 150fdcc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -597,9 +597,15 @@ let createProject = () => {
think.APP_PATH = getProjectAppPath();
_createProject();


let p = projectRootPath.slice(cwd.length);
if(p[0] === think.sep){
p = p.slice(1);
}

console.log();
console.log(' enter path:');
console.log(' $ cd ' + projectRootPath.slice(cwd.length + 1));
console.log(' $ cd ' + p);
console.log();

console.log(' install dependencies:');
Expand Down

0 comments on commit 150fdcc

Please sign in to comment.