mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-04-25 19:10:36 +02:00
fix tar_create command on Windows
This commit is contained in:
parent
e30de6b719
commit
94eeb9cb9d
|
@ -42,7 +42,7 @@ class PrepareTask extends AbstractTask
|
|||
|
||||
$excludes = $this->getExcludes();
|
||||
$tarPath = $this->runtime->getEnvOption('tar_create_path', 'tar');
|
||||
$flags = $this->runtime->getEnvOption('tar_create', 'cfzp');
|
||||
$flags = $this->runtime->getEnvOption('tar_create', stripos(PHP_OS, 'WIN') === 0 ? '--force-local -c -z -p -f' : 'cfzp');
|
||||
$from = $this->runtime->getEnvOption('from', './');
|
||||
$cmdTar = sprintf('%s %s %s %s %s', $tarPath, $flags, $tarLocal, $excludes, $from);
|
||||
|
||||
|
|
Loading…
Reference in a new issue