Permalink
Browse files

mkdir -p reposPath

  • Loading branch information...
bencevans committed Oct 11, 2012
1 parent 91fc44c commit eaa1d0dd112de52191fa4a9e8e86ca96342b8377
Showing with 6 additions and 1 deletion.
  1. +4 −0 app.js
  2. +2 −1 package.json
View
4 app.js
@@ -2,6 +2,7 @@
var fs = require('fs');
var path = require('path');
var tmp = require('tmp');
+var mkdirp = require('mkdirp');
var wrench = require('wrench');
// Config
@@ -19,6 +20,9 @@ var Handlebars = require('handlebars');
var pushover = require('pushover');
var repos = pushover(config.repoPath);
+// mkdir -p ReposPath
+mkdirp.sync(config.repoPath, 0777);
+
repos.on('push', function (push) {
// TODO: Reject if more than config.maxRepoSize
// TODO: Reject if URL hasn't actually been generated
View
@@ -9,7 +9,8 @@
"mu": "~0.5.2",
"wrench": "~1.3.9",
"pushover": "~1.0.3",
- "tmp": "~0.0.14"
+ "tmp": "~0.0.14",
+ "mkdirp": "~0.3.4"
},
"devDependencies": {
"freeport": "~1.0.0",

0 comments on commit eaa1d0d

Please sign in to comment.