mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-16 05:38: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'
|
posix: 'npm prune && npm install --production'
|
||||||
};
|
};
|
||||||
// determine the shell we're running in
|
// 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
|
// Use the install command that is appropriate for our shell
|
||||||
exec(installCommands[whichShell], {
|
exec(installCommands[whichShell], {
|
||||||
cwd: path,
|
cwd: path,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue