Skip to content
This repository was archived by the owner on Apr 21, 2022. It is now read-only.

Commit 126b714

Browse files
committed
more explicit mv
1 parent dabfd41 commit 126b714

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/tarballs/build.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,13 @@ async function doBuild(c: IConfig, options: {
6565
}
6666
const extractCLI = async (tarball: string) => {
6767
await qq.emptyDir(c.workspace())
68-
await qq.mv(tarball, c.workspace())
69-
tarball = path.basename(tarball)
70-
tarball = qq.join([c.workspace(), tarball])
71-
qq.cd(c.workspace())
7268
await tar.x({
7369
file: tarball,
7470
stripComponents: 1,
7571
})
76-
await qq.rm('package', tarball, 'bin/run.cmd')
72+
await qq.mkdirp(path.dirname(baseTarballPath))
73+
await qq.mv(tarball, baseTarballPath)
74+
// await qq.rm('package', tarball, 'bin/run.cmd')
7775
}
7876
const updatePJSON = async () => {
7977
qq.cd(c.workspace())

0 commit comments

Comments
 (0)