Permalink
Browse files

[fix] On "hello world" invalid process

  • Loading branch information...
1 parent d93af9b commit 5215aef7109964fb30229ff2520c1c3080e43cf8 @alejandro alejandro committed Jun 28, 2012
Showing with 4 additions and 8 deletions.
  1. +4 −8 lib/app.js
View
12 lib/app.js
@@ -159,14 +159,6 @@ function init (args) {
if (res == 1 ) {
log.info('initializing git repo for', appname, 'into folder', folder);
- if (!exists(folder)) {
- try {
- fs.mkdirSync(folder, "0750");
- } catch (e) {
- log.error(e.toString());
- }
- }
- config.writeApp(appname, folder);
isNewRep = true;
}
@@ -225,6 +217,10 @@ function init (args) {
log.info('cloning your new app in '+ folder);
exec('git clone https://github.com/nodester/defaultApp.git'+ ' ' + folder, function (error, stdout, stderr) {
+
+ if (error) {
+ return log.error(error);
+ }
log.info('clone complete');

0 comments on commit 5215aef

Please sign in to comment.