Small wget like mirroring utility.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix main module detection for symlinks using realpath

rektide f2f03323 d5f5f049

+2 -1
+2 -1
src/cli.ts
··· 1 1 #!/usr/bin/env node 2 2 import { cli, define } from "gunshi"; 3 + import { realpath } from "node:fs/promises"; 3 4 import type { OverwriteMode, LinkPredicate } from "./types.ts"; 4 5 import { ensureUrl, applyReplaceHost } from "./url/util.ts"; 5 6 import { originPredicate, subtreePredicate } from "./url/predicates.ts"; ··· 83 84 }, 84 85 }); 85 86 86 - if (import.meta.url === `file://${process.argv[1]}`) { 87 + if (import.meta.url === `file://${await realpath(process.argv[1])}`) { 87 88 await cli(process.argv.slice(2), command); 88 89 }