Skip to content

Commit 20c0fc4

Browse files
committed
Use default user shell
1 parent f421de2 commit 20c0fc4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/protocol/src/node/server.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,7 @@ export class Server {
8585
throw new Error(`unrecognized platform "${platform}"`);
8686
}
8787
initMsg.setOperatingSystem(operatingSystem);
88-
if (global.process.env.SHELL) {
89-
initMsg.setShell(global.process.env.SHELL);
90-
}
88+
initMsg.setShell(os.userInfo().shell || global.process.env.SHELL);
9189
const srvMsg = new ServerMessage();
9290
srvMsg.setInit(initMsg);
9391
connection.send(srvMsg.serializeBinary());

0 commit comments

Comments
 (0)