mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-05-17 21:26:40 +02:00
Merge pull request #290 from Kevinrob/patch-1
Allow `deployment -> source -> temporal` to be absent in the config
This commit is contained in:
commit
b9a63568a1
|
@ -56,7 +56,7 @@ class CloneTask extends AbstractTask
|
|||
|
||||
// Create temporal directory for clone
|
||||
if (is_array($this->source)) {
|
||||
if (trim($this->source['temporal']) == '') {
|
||||
if (!isset($this->source['temporal']) || trim($this->source['temporal']) == '') {
|
||||
$this->source['temporal'] = sys_get_temp_dir();
|
||||
}
|
||||
$this->source['temporal'] = rtrim($this->source['temporal'], '/') . '/' . md5(microtime()) . '/';
|
||||
|
|
Loading…
Reference in a new issue