mirror of
https://github.com/hauke68/Magallanes.git
synced 2025-09-16 13:50:17 +02:00
make h option for targz optional, default is set h option
This commit is contained in:
parent
f4c3817b37
commit
4cdb95f3be
@ -77,7 +77,10 @@ class TarGzTask extends BaseStrategyTaskAbstract implements IsReleaseAware
|
|||||||
$strategyFlags = '';
|
$strategyFlags = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
$command = 'tar cfzh' . $strategyFlags . ' ' . $localTarGz . '.tar.gz ' . $excludeCmd . $excludeFromFileCmd . ' -C ' . $this->getConfig()->deployment('from') . ' .';
|
// remove h option only if dump_symlinks is allowed in the release config part
|
||||||
|
$dumpSymlinks = $this->getConfig()->release('dump_symlinks') ? '' : 'h';
|
||||||
|
|
||||||
|
$command = 'tar cfz'. $dumpSymlinks . $strategyFlags . ' ' . $localTarGz . '.tar.gz ' . $excludeCmd . $excludeFromFileCmd . ' -C ' . $this->getConfig()->deployment('from') . ' .';
|
||||||
$result = $this->runCommandLocal($command);
|
$result = $this->runCommandLocal($command);
|
||||||
|
|
||||||
// Strategy Flags
|
// Strategy Flags
|
||||||
|
Loading…
Reference in New Issue
Block a user