Merge pull request 'fix(bootstrap): add npm-global bin to clawdie PATH in jail' (#120) from fix/jail-bootstrap-path into main
Some checks are pending
CI / rust (push) Waiting to run
CI / markdown (push) Waiting to run
CI / port (push) Waiting to run
CI / agent-jail-pkgs (push) Waiting to run

Reviewed-on: #120
This commit is contained in:
clawdie 2026-06-21 08:51:32 +02:00
commit 0b55b68eb4

View file

@ -83,4 +83,10 @@ if [ ! -e "${NPM_PREFIX}/bin/pi" ]; then
fi
cp -a "${NPM_PREFIX}/bin/pi" "${JAIL_ROOT}${NPM_PREFIX}/bin/pi"
# Add npm-global bin to clawdie's PATH so pi/bw are found on login
if ! grep -q 'npm-global/bin' "${JAIL_ROOT}/home/clawdie/.profile" 2>/dev/null; then
echo 'PATH="/home/clawdie/.npm-global/bin:$PATH"' >> "${JAIL_ROOT}/home/clawdie/.profile"
echo 'export PATH' >> "${JAIL_ROOT}/home/clawdie/.profile"
fi
echo "Done — ${JAIL_NAME} ready for vault provision."