Skip to content

Commit 76cecdd

Browse files
committed
A fix to the load script
1 parent 517a7a3 commit 76cecdd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mache/deploy/templates/load.sh.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,11 @@ if [[ -n "${MACHE_DEPLOY_RUNTIME_VERSION_CMD:-}" ]]; then
5050
return 1
5151
fi
5252

53+
# Use a non-login shell so pixi-provided PATH/env are not reset by site profiles.
5354
probe_output="$(
5455
env -u PIXI_PROJECT_MANIFEST -u PIXI_PROJECT_ROOT \
5556
"${PIXI}" run -m "${PIXI_TOML}" -- \
56-
bash -lc "${MACHE_DEPLOY_RUNTIME_VERSION_CMD}" 2>&1
57+
bash -c "${MACHE_DEPLOY_RUNTIME_VERSION_CMD}" 2>&1
5758
)"
5859
status=$?
5960

0 commit comments

Comments
 (0)