mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
fix(env): login shell test works when the account shell is zsh
This commit is contained in:
parent
3cdfbec51e
commit
5b31896472
1 changed files with 2 additions and 0 deletions
2
packages/env/test/ssh.test.ts
vendored
2
packages/env/test/ssh.test.ts
vendored
|
|
@ -184,7 +184,9 @@ describe.skipIf(sshd === undefined)("SSH bootstrap", () => {
|
|||
}, 60_000);
|
||||
|
||||
it("starts the daemon through the login shell only when asked", async () => {
|
||||
// The login shell is the account's shell: sh and bash read .profile, zsh (the macOS default) reads .zprofile.
|
||||
writeFileSync(join(home, ".profile"), "export PI_ENV_LOGIN=yes\n");
|
||||
writeFileSync(join(home, ".zprofile"), "export PI_ENV_LOGIN=yes\n");
|
||||
const login = async (loginShell: boolean) => {
|
||||
const { connection } = await connectSsh({ ...target, binary: daemon, loginShell });
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue