Browse Source

Merge pull request #186 from d-ulyanov/develop

Ignoring errors while deleting temp files
1.0
Kuba Turek 10 years ago
parent
commit
19c687b800
  1. 3
      .gitignore
  2. 4
      Mage/Task/BuiltIn/Deployment/Strategy/TarGzTask.php

3
.gitignore vendored

@ -9,4 +9,7 @@ bin
ehthumbs.db ehthumbs.db
Icon? Icon?
Thumbs.db Thumbs.db
# IDE generated files
.idea
nbproject nbproject

4
Mage/Task/BuiltIn/Deployment/Strategy/TarGzTask.php

@ -109,11 +109,11 @@ class TarGzTask extends BaseStrategyTaskAbstract implements IsReleaseAware
$result = $this->runCommandRemote($command) && $result; $result = $this->runCommandRemote($command) && $result;
// Delete Tar Gz from Remote Host // Delete Tar Gz from Remote Host
$command = $this->getReleasesAwareCommand('rm ' . $remoteTarGz . '.tar.gz'); $command = $this->getReleasesAwareCommand('rm -f ' . $remoteTarGz . '.tar.gz');
$result = $this->runCommandRemote($command) && $result; $result = $this->runCommandRemote($command) && $result;
// Delete Tar Gz from Local // Delete Tar Gz from Local
$command = 'rm ' . $localTarGz . ' ' . $localTarGz . '.tar.gz'; $command = 'rm -f ' . $localTarGz . ' ' . $localTarGz . '.tar.gz';
$result = $this->runCommandLocal($command) && $result; $result = $this->runCommandLocal($command) && $result;
return $result; return $result;

Loading…
Cancel
Save