Skip to content

Commit e805f89

Browse files
committed
Skip downloading binary if file already exists
1 parent 5d3ea34 commit e805f89

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Installer.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ public static function installBinaries()
1010

1111
foreach($binaryUrls as $binaryUrl) {
1212
$destination = __DIR__.'/../bin/'.basename($binaryUrl);
13+
14+
if (file_exists($destination)) {
15+
continue;
16+
}
17+
1318
file_put_contents($destination, file_get_contents($binaryUrl));
1419
chmod($destination, 0755);
1520
}

0 commit comments

Comments
 (0)