Skip to content

Commit e429afe

Browse files
committed
use 'ExecOptions.cwd' instead of 'tar -C'
1 parent 3c147c1 commit e429afe

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

index.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,7 @@ async function run() {
2323

2424
const distrib = await tc.downloadTool('http://repo.msys2.org/distrib/x86_64/msys2-base-x86_64-20190524.tar.xz');
2525

26-
await exec.exec(`tar`, [
27-
'-x', '-J', '--force-local',
28-
// For some reason, GNU Tar on Windows expects paths to be slash-separated
29-
'-C', dest.replace(/\\/g, '/'),
30-
'-f', distrib
31-
]);
26+
await exec.exec(`tar`, [ '-x', '-J', '--force-local', '-f', distrib ], {cwd: dest} );
3227

3328
let cmd = path.join(dest, 'msys2do.cmd');
3429
fs.writeFileSync(cmd, [

0 commit comments

Comments
 (0)