mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-09-03 04:08:57 +02:00
Merge pull request #180 from MovingImage24/dump_symlinks
make h option for targz optional, default is set h option
This commit is contained in:
@@ -77,7 +77,10 @@ class TarGzTask extends BaseStrategyTaskAbstract implements IsReleaseAware
|
||||
$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);
|
||||
|
||||
// Strategy Flags
|
||||
|
||||
Reference in New Issue
Block a user