Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

setting env vars in spawn() works

  • Loading branch information...
commit 9bf81945bc68293902379c788d176818a7790d17 1 parent d79400c
@substack authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 index.js
View
4 index.js
@@ -343,6 +343,10 @@ Propagit.prototype.drone = function (fn) {
process.env.COMMIT = commit;
process.env.REPO = repo;
+ Object.keys(opts.env || {}).forEach(function (key) {
+ process.env[key] = opts.env[key];
+ });
+
var dir = path.join(self.deploydir, repo + '.' + commit);
opts.directory = dir;
Please sign in to comment.
Something went wrong with that request. Please try again.