cispacempt-v2 0.0.9 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.js +1 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -214,7 +214,7 @@ module.exports = {
|
|
|
214
214
|
await new Promise(async (res) => {
|
|
215
215
|
const commandToRun = resolvedCommand;
|
|
216
216
|
let finalCommand;
|
|
217
|
-
if (ciScript.os && Object.keys(require("
|
|
217
|
+
if (ciScript.os && Object.keys(require("./lib/prootEnv").prepareProotEnv.rootfsMap || {}).includes(ciScript.os)) {
|
|
218
218
|
const { prootBin, rootfsDir } = await prepareProotEnv(ciScript.os, path.join(__dirname, "ci_proot_cache"));
|
|
219
219
|
|
|
220
220
|
finalCommand = `${prootBin} -R ${rootfsDir} -b ${tempDir}:/sandbox -w /sandbox /bin/sh -c "${commandToRun.replace(/"/g, '\\"')}"`;
|