Skip to content

Commit

Permalink
Fix PHP Notice: Undefined variable: windows in ~/.terminus/plugins/te…
Browse files Browse the repository at this point in the history
…rminus-site-mount-plugin/src/Commands/SiteMountCommand.php on line 154
  • Loading branch information
uberhacker committed Jan 27, 2017
1 parent e7a8407 commit 38a5e07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/SiteMountCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ protected function commandExists($command)
$test_command = WINDOWS ? 'where' : 'command -v';
$file = popen("$test_command $command", 'r');
$result = fgets($file, 255);
return $windows ? !preg_match('#Could not find files#', $result) : !empty($result);
return WINDOWS ? !preg_match('#Could not find files#', $result) : !empty($result);
}

/**
Expand Down

0 comments on commit 38a5e07

Please sign in to comment.