Skip to content

Commit

Permalink
fix library download
Browse files Browse the repository at this point in the history
  • Loading branch information
matyhtf committed Nov 8, 2022
1 parent 4a84592 commit 274f0e7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sapi/Preprocessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,16 @@ function __construct(string $rootPath)
$this->libraryDir = $rootPath . '/pool/lib';
$this->extensionDir = $rootPath . '/pool/ext';

if (!is_dir($rootPath . '/pool')) {
mkdir($rootPath . '/pool');
}
if (!is_dir($this->libraryDir)) {
mkdir($this->libraryDir);
}
if (!is_dir($this->extensionDir)) {
mkdir($this->extensionDir);
}

switch (PHP_OS) {
default:
case 'Linux':
Expand Down

0 comments on commit 274f0e7

Please sign in to comment.