Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints committed Jul 20, 2023
1 parent 51930cf commit 2f36ccd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/Console/ChromeDriverCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,14 +277,11 @@ protected function extract($archive)
*/
protected function rename($binary, $os)
{
$directory = Str::beforeLast(str_replace('chromedriver', 'chromedriver-'.$os, $binary), DIRECTORY_SEPARATOR);
$newName = Str::after(str_replace('chromedriver', 'chromedriver-'.$os, $binary), DIRECTORY_SEPARATOR);

rename($this->directory.$binary, $this->directory.$newName);

chmod($this->directory.$newName, 0755);

unlink($directory);
}

/**
Expand Down

0 comments on commit 2f36ccd

Please sign in to comment.