Change plugins download directory
[MAILPOET-3482]
This commit is contained in:
committed by
Veljko V
parent
03f25fdf64
commit
44f1269916
@@ -37,6 +37,9 @@ class GithubClient {
|
||||
if (!$assetDownloadUrl) {
|
||||
throw new \Exception("Release zip for $tag not found");
|
||||
}
|
||||
if (!is_dir($downloadDir)) {
|
||||
mkdir($downloadDir, 0777, true);
|
||||
}
|
||||
$this->httpClient->get($assetDownloadUrl, ['sink' => $downloadDir . $zip, 'headers' => ['Accept' => 'application/octet-stream']]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user