Skip to content

Commit 791f223

Browse files
committed
Really skip entries outside of the prefix
We warned about not writing them, but then wrote them anyway. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 0e497be commit 791f223

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/downloader.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ export async function unzip(
7878
process.stderr.write(
7979
`warning: skipping ${entry.path} because it does not start with ${stripPrefix}\n`
8080
)
81+
entry.autodrain()
82+
return
8183
}
8284
const entryPath = `${outputDirectory}/${entry.path.substring(
8385
stripPrefix.length

0 commit comments

Comments
 (0)