Explorar o código

fix warning on auto-install

George S. Baugh %!s(int64=4) %!d(string=hai) anos
pai
achega
72256b03aa
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/Playwright.pm

+ 1 - 1
lib/Playwright.pm

@@ -182,7 +182,7 @@ sub _check_node {
 
     # Check that node is installed
     $node_bin = File::Which::which('node');
-    confess("node must exist, be in your PATH and executable") unless -x $node_bin;
+    confess("node must exist, be in your PATH and executable") unless $node_bin && -x $node_bin;
 
     my $global_install = '';
     my $path2here = File::Basename::dirname( Cwd::abs_path( $INC{'Playwright.pm'} ) );