Skip to content

Commit

Permalink
fix undefined fish shell match (#1516)
Browse files Browse the repository at this point in the history
* fix undefined fish shell match

* check for string
  • Loading branch information
Henrik authored and rauchg committed Feb 16, 2017
1 parent 77babd3 commit 63ab33d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 63ab33d

Please sign in to comment.