Skip to content

Commit

Permalink
always set PATH in env
Browse files Browse the repository at this point in the history
  • Loading branch information
mafintosh authored and andrewosh committed Jan 22, 2020
1 parent c93ebcc commit c2a654b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ async function start (opts = {}) {
opts = { ...constants, ...opts }
opts.endpoint = `localhost:${opts.port}`

if (opts.env && !opts.env.PATH) {
opts.env = { ...opts.env, PATH: process.env.PATH }
}

const client = new HyperdriveClient(opts.endpoint, { storage: initialOpts.storage || opts.root })
const running = await new Promise((resolve, reject) => {
client.ready(err => {
Expand Down

0 comments on commit c2a654b

Please sign in to comment.