8000 fix(update): fix undefined gecko getBoolean error (#113) · angular/webdriver-manager@b103850 · GitHub
[go: up one dir, main page]

Skip to content

Commit b103850

Browse files
cnishinaheathkit
authored andcommitted
fix(update): fix undefined gecko getBoolean error (#113)
closes #107
1 parent 7fbacf5 commit b103850

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/cmds/update.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ if (argv._[0] === 'update-run') {
6969
function update(options: Options): void {
7070
let standalone = options[Opt.STANDALONE].getBoolean();
7171
let chrome = options[Opt.CHROME].getBoolean();
72-
let gecko = options[Opt.GECKO].getBoolean();
72+
let gecko = false;
73+
if (GeckoDriver.supports(os.type(), os.arch())) {
74+
gecko = options[Opt.GECKO].getBoolean();
75+
}
7376
let ie: boolean = false;
7477
let ie32: boolean = false;
7578
if (options[Opt.IE]) {

0 commit comments

Comments
 (0)
0