Merge pull request #186 from d-ulyanov/develop

Ignoring errors while deleting temp files
This commit is contained in:
Kuba Turek 2015-01-30 08:34:14 +01:00
commit 19c687b800
2 changed files with 6 additions and 3 deletions

5
.gitignore vendored
View file

@ -9,4 +9,7 @@ bin
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;