Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[fix] On "hello world" invalid process

  • Loading branch information...
commit 5215aef7109964fb30229ff2520c1c3080e43cf8 1 parent d93af9b
Alejandro Morales authored June 27, 2012

Showing 1 changed file with 4 additions and 8 deletions. Show diff stats Hide diff stats

  1. 12  lib/app.js
12  lib/app.js
@@ -159,14 +159,6 @@ function init (args) {
159 159
     if (res == 1 ) {
160 160
 
161 161
       log.info('initializing git repo for', appname, 'into folder', folder);
162  
-      if (!exists(folder)) {
163  
-        try {
164  
-          fs.mkdirSync(folder, "0750");
165  
-        } catch (e) {
166  
-          log.error(e.toString());
167  
-        }
168  
-      }
169  
-      config.writeApp(appname, folder);
170 162
       isNewRep = true;
171 163
     } 
172 164
     
@@ -225,6 +217,10 @@ function init (args) {
225 217
         log.info('cloning your new app in '+ folder);
226 218
 
227 219
         exec('git clone https://github.com/nodester/defaultApp.git'+ ' ' + folder, function (error, stdout, stderr) {
  220
+          
  221
+          if (error) {
  222
+            return log.error(error);
  223
+          }
228 224
 
229 225
           log.info('clone complete');
230 226
 

0 notes on commit 5215aef

Please sign in to comment.
Something went wrong with that request. Please try again.