MCPcopy Create free account
hub / github.com/Azure/powershell / extractZipNix

Function extractZipNix

lib/index.js:4271–4281  ·  view source on GitHub ↗
(file, dest)

Source from the content-addressed store, hash-verified

4269 });
4270}
4271function extractZipNix(file, dest) {
4272 return __awaiter(this, void 0, void 0, function* () {
4273 const unzipPath = yield io.which('unzip', true);
4274 const args = [file];
4275 if (!core.isDebug()) {
4276 args.unshift('-q');
4277 }
4278 args.unshift('-o'); //overwrite with -o, otherwise a prompt is shown which freezes the run
4279 yield exec_1.exec(`"${unzipPath}"`, args, { cwd: dest });
4280 });
4281}
4282/**
4283 * Caches a directory and installs it into the tool cacheDir
4284 *

Callers 1

extractZipFunction · 0.85

Calls 1

execMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…