1
0
Fork 0

Update packages/artifact/src/internal/download/download-artifact.ts

Co-authored-by: Tingluo Huang <tingluohuang@github.com>
pull/1666/head
Bethany 2024-02-23 15:20:01 -05:00 committed by GitHub
parent 8a1800c5da
commit f77cbc9ef7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ export async function streamExtractExternal(
new stream.Transform({ new stream.Transform({
objectMode: true, objectMode: true,
transform: async (entry, _, callback) => { transform: async (entry, _, callback) => {
const fullPath = path.resolve(path.join(directory, entry.path)) const fullPath = path.resolve(directory, entry.path)
if (!directory.endsWith(path.sep)) { if (!directory.endsWith(path.sep)) {
directory += path.sep directory += path.sep
} }