fix: fix missing first char on display when create project, fix #258

This commit is contained in:
lichengyin 2016-02-03 11:36:42 +08:00
parent d30e304495
commit 150fdcc478

View File

@ -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:');