Skip to content

Commit

Permalink
Update get-hwi.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-kaufman committed Oct 6, 2024
1 parent 9eeef9e commit 429b04b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/get-hwi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ async function main(shouldCleanup: boolean = false) {
}
}

if (import.meta.url === `file://${encodeURI(process.argv[1])}`) {
if (import.meta.url.startsWith("file:")) {
const args = process.argv.slice(2);
const shouldCleanup = args.includes("--cleanup");
main(shouldCleanup).catch((error) => {
Expand Down

0 comments on commit 429b04b

Please sign in to comment.