Skip to content

Commit

Permalink
Fix overzealous shebang function (#759)
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-1-anderson committed Aug 2, 2018
1 parent 50001dd commit e9ef857
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,10 @@ protected function shebang($args)
*/
protected function isShebangFile($filepath)
{
// Avoid trying to call $filepath on remote URLs
if ((strpos($filepath, '://') !== false) && (substr($filepath, 0, 7) != 'file://')) {
return false;
}
if (!is_file($filepath)) {
return false;
}
Expand Down

0 comments on commit e9ef857

Please sign in to comment.