Use default user shell

This commit is contained in:
Kyle Carberry 2019-02-27 12:43:00 -06:00
parent f421de29d0
commit 20c0fc4c52
No known key found for this signature in database
GPG Key ID: A0409BDB6B0B3EDB
1 changed files with 1 additions and 3 deletions

View File

@ -85,9 +85,7 @@ export class Server {
throw new Error(`unrecognized platform "${platform}"`); throw new Error(`unrecognized platform "${platform}"`);
} }
initMsg.setOperatingSystem(operatingSystem); initMsg.setOperatingSystem(operatingSystem);
if (global.process.env.SHELL) { initMsg.setShell(os.userInfo().shell || global.process.env.SHELL);
initMsg.setShell(global.process.env.SHELL);
}
const srvMsg = new ServerMessage(); const srvMsg = new ServerMessage();
srvMsg.setInit(initMsg); srvMsg.setInit(initMsg);
connection.send(srvMsg.serializeBinary()); connection.send(srvMsg.serializeBinary());