Browse Source

Ignoring errors while deleting temp files

1.0
Dmitriy Ulyanov 10 years ago
parent
commit
cc615dda81
  1. 5
      .gitignore
  2. 4
      Mage/Task/BuiltIn/Deployment/Strategy/TarGzTask.php

5
.gitignore vendored

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

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

@ -109,11 +109,11 @@ class TarGzTask extends BaseStrategyTaskAbstract implements IsReleaseAware
$result = $this->runCommandRemote($command) && $result;
// 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;
// Delete Tar Gz from Local
$command = 'rm ' . $localTarGz . ' ' . $localTarGz . '.tar.gz';
$command = 'rm -f ' . $localTarGz . ' ' . $localTarGz . '.tar.gz';
$result = $this->runCommandLocal($command) && $result;
return $result;

Loading…
Cancel
Save