From 3be8ffd48639cefa2122092159a69cccaaae17b2 Mon Sep 17 00:00:00 2001 From: Matheus Fernandes Date: Wed, 31 Aug 2016 23:33:01 -0300 Subject: [PATCH] Fix: do not throw when `shellArgs` is not present in `.hyperterm.js` (#678) See https://github.com/zeit/hyperterm/commit/dfcb0a9629c5624847d7f852188254b322e7de82#commitcomment-18834267 --- app/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/index.js b/app/index.js index dc141b5d..aa51e29b 100644 --- a/app/index.js +++ b/app/index.js @@ -146,7 +146,7 @@ app.on('ready', () => { rpc.on('new', ({ rows = 40, cols = 100, cwd = process.env.HOME }) => { const shell = cfg.shell; - const shellArgs = Array.from(cfg.shellArgs); + const shellArgs = cfg.shellArgs && Array.from(cfg.shellArgs); initSession({ rows, cols, cwd, shell, shellArgs }, (uid, session) => { sessions.set(uid, session);