From 20c0fc4c5236957f6a66a852de7e8088c613b253 Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Wed, 27 Feb 2019 12:43:00 -0600 Subject: [PATCH] Use default user shell --- packages/protocol/src/node/server.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/protocol/src/node/server.ts b/packages/protocol/src/node/server.ts index 812ebf0c9..62fd7354a 100644 --- a/packages/protocol/src/node/server.ts +++ b/packages/protocol/src/node/server.ts @@ -85,9 +85,7 @@ export class Server { throw new Error(`unrecognized platform "${platform}"`); } initMsg.setOperatingSystem(operatingSystem); - if (global.process.env.SHELL) { - initMsg.setShell(global.process.env.SHELL); - } + initMsg.setShell(os.userInfo().shell || global.process.env.SHELL); const srvMsg = new ServerMessage(); srvMsg.setInit(initMsg); connection.send(srvMsg.serializeBinary());