Skip to content

Commit 81635d5

Browse files
committed
tmpDest
1 parent 63c15ff commit 81635d5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/cli/buildInternal.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ export async function downloadIntegrations(dest: string, included?: string[]) {
6666
}
6767

6868
console.log('downloading', d, '-->', key)
69-
const dest = path.resolve(packagesDir, `tmp`)
70-
await ensureDir(dest)
69+
const tmpDest = path.resolve(packagesDir, `tmp`)
70+
await ensureDir(tmpDest)
7171
await execCommand(
72-
`pipeline-fs download "runs/${key}/package" "${dest}"`,
72+
`pipeline-fs download "runs/${key}/package" "${tmpDest}"`,
7373
{ stdio: 'inherit', shell: '/usr/bin/bash' }
7474
)
75-
const tarball = await getFs().readFile(dest)
76-
await getFs().deleteFile(dest)
75+
const tarball = await getFs().readFile(tmpDest)
76+
await getFs().deleteFile(tmpDest)
7777
const files = extractTarball(await gunzip(tarball))
7878
await Promise.all(files.map(async f => {
7979
const absPath = path.resolve(dest, f.path)

0 commit comments

Comments
 (0)