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,