From 63ab33daa9d721cdc6e7bce630ede0e06da2b250 Mon Sep 17 00:00:00 2001 From: Henrik Date: Thu, 16 Feb 2017 18:23:57 +0100 Subject: [PATCH] fix undefined fish shell match (#1516) * fix undefined fish shell match * check for string --- app/plugins.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/plugins.js b/app/plugins.js index f0366982..636a94c1 100644 --- a/app/plugins.js +++ b/app/plugins.js @@ -241,7 +241,7 @@ function install(fn) { posix: 'npm prune && npm install --production' }; // determine the shell we're running in - const whichShell = shell.match(/fish/) ? 'fish' : 'posix'; + const whichShell = (typeof cfgShell === 'string' && cfgShell.match(/fish/)) ? 'fish' : 'posix'; // Use the install command that is appropriate for our shell exec(installCommands[whichShell], { cwd: path,