mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
fix undefined fish shell match (#1516)
* fix undefined fish shell match * check for string
This commit is contained in:
parent
77babd36e3
commit
63ab33daa9
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue