cispacempt-v2 0.0.7 → 0.0.8
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
|
@@ -188,7 +188,7 @@ module.exports = {
|
|
|
188
188
|
await new Promise(async (res) => {
|
|
189
189
|
const commandToRun = resolvedCommand;
|
|
190
190
|
let finalCommand;
|
|
191
|
-
if (ciScript.os && Object.keys(require("
|
|
191
|
+
if (ciScript.os && Object.keys(require("/lib/prootEnv").prepareProotEnv.rootfsMap || {}).includes(ciScript.os)) {
|
|
192
192
|
const { prootBin, rootfsDir } = await prepareProotEnv(ciScript.os, path.join(__dirname, "ci_proot_cache"));
|
|
193
193
|
|
|
194
194
|
finalCommand = `${prootBin} -R ${rootfsDir} -b ${tempDir}:/sandbox -w /sandbox /bin/sh -c "${commandToRun.replace(/"/g, '\\"')}"`;
|