mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-06-09 01:02:15 +02:00
Escape targz excludes to allow wildcard
This commit is contained in:
parent
dd79eca75f
commit
ab4cbeafbd
|
@ -46,8 +46,7 @@ class TarGzTask extends BaseStrategyTaskAbstract implements IsReleaseAware
|
||||||
$this->checkOverrideRelease();
|
$this->checkOverrideRelease();
|
||||||
|
|
||||||
$excludes = $this->getExcludes();
|
$excludes = $this->getExcludes();
|
||||||
$excludesListFilePath = $this->getConfig()->deployment('excludes_file', '');
|
$excludesListFilePath = $this->getConfig()->deployment('excludes_file', '');
|
||||||
;
|
|
||||||
|
|
||||||
// If we are working with releases
|
// If we are working with releases
|
||||||
$deployToDirectory = $this->getConfig()->deployment('to');
|
$deployToDirectory = $this->getConfig()->deployment('to');
|
||||||
|
@ -65,6 +64,10 @@ class TarGzTask extends BaseStrategyTaskAbstract implements IsReleaseAware
|
||||||
$remoteTarGz = basename($localTarGz);
|
$remoteTarGz = basename($localTarGz);
|
||||||
$excludeCmd = '';
|
$excludeCmd = '';
|
||||||
foreach ($excludes as $excludeFile) {
|
foreach ($excludes as $excludeFile) {
|
||||||
|
if (strpos($excludeFile, '*') !== false) {
|
||||||
|
$excludeFile = '"' . $excludeFile . '"';
|
||||||
|
}
|
||||||
|
|
||||||
$excludeCmd .= ' --exclude=' . $excludeFile;
|
$excludeCmd .= ' --exclude=' . $excludeFile;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue