Skip to content

Commit

Permalink
Update run.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbhmr authored Apr 11, 2024
1 parent c2a7b14 commit d8fdc2e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions run.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,8 @@ async function generate() {
const url = `https://github.com/git-for-windows/git/releases/download/v${gfwVersion}/${filename}`;
console.debug("url", url);
const response = await fetch(url);
const dest = "PortableGit-64-bit.7z.exe";
await mkdir(dirname(dest), { recursive: true });
await response.body.pipeTo(Writable.toWeb(createWriteStream(dest)));
console.log("downloaded %o to %o", url, dest);
await response.body.pipeTo(Writable.toWeb(createWriteStream("PortableGit-64-bit.7z.exe")));
console.log("downloaded %o to %o", url, "PortableGit-64-bit.7z.exe");
}

async function build() {
Expand Down

0 comments on commit d8fdc2e

Please sign in to comment.