@lazyingart/agintiflow 0.8.0 → 0.8.1
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
CHANGED
package/src/docker-sandbox.js
CHANGED
|
@@ -219,6 +219,7 @@ function dockerCommand(command, policy) {
|
|
|
219
219
|
`export PYTHONUSERBASE=${DOCKER_ENV}/python-user`,
|
|
220
220
|
`export PATH=${DOCKER_ENV}/python/bin:${DOCKER_ENV}/python-user/bin:${DOCKER_ENV}/miniforge/bin:${DOCKER_ENV}/bin:$PATH`,
|
|
221
221
|
`cd ${DOCKER_WORKSPACE}`,
|
|
222
|
+
`if ! command -v sudo >/dev/null 2>&1; then sudo() { "$@"; }; export -f sudo; fi`,
|
|
222
223
|
];
|
|
223
224
|
|
|
224
225
|
if (!policy.requiresDockerRoot) {
|