Skip to content

Commit

Permalink
fix(deployment): properly handle the file: URL protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Aug 20, 2021
1 parent 5ece888 commit e852b2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/deployment/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ show-config display the client connection parameters
if (subOpts.genesis) {
// Fetch the specified genesis, don't generate it.
const loc = new URL(subOpts.genesis, `file://${cwd()}`);
if (loc.protocol === 'file') {
if (loc.protocol === 'file:') {
genJSON = await trimReadFile(loc.pathname);
} else {
const res = await fetch(subOpts.genesis);
Expand Down

0 comments on commit e852b2d

Please sign in to comment.