Merge pull request #434 from fritzmg/fix-windows-tar-args
fix tar_create command on Windows
This commit is contained in:
commit
db1c5ba4ed
|
@ -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 New Issue