Skip to content

Commit

Permalink
Merge pull request #186 from d-ulyanov/develop
Browse files Browse the repository at this point in the history
Ignoring errors while deleting temp files
  • Loading branch information
eps90 committed Jan 30, 2015
2 parents 7be2dd8 + cc615dd commit 19c687b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Expand Up @@ -9,4 +9,7 @@ bin
ehthumbs.db
Icon?
Thumbs.db
nbproject

# IDE generated files
.idea
nbproject
4 changes: 2 additions & 2 deletions Mage/Task/BuiltIn/Deployment/Strategy/TarGzTask.php
Expand Up @@ -109,11 +109,11 @@ public function run()
$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;
Expand Down

0 comments on commit 19c687b

Please sign in to comment.