Ignoring errors while deleting temp files

This commit is contained in:
Dmitriy Ulyanov 2015-01-25 21:50:00 +03:00
parent 1cf7c56c39
commit cc615dda81
2 changed files with 6 additions and 3 deletions

5
.gitignore vendored
View file

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

View file

@ -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;