Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c66e333

Browse files
committedFeb 27, 2019
Use default user shell
1 parent e0fe468 commit c66e333

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)
Please sign in to comment.