Skip to content

Commit

Permalink
Merge pull request #4 from weareferal/develop
Browse files Browse the repository at this point in the history
Minor update to logic for keeping backups
  • Loading branch information
timmyomahony authored Jul 12, 2020
2 parents 9885040 + 248e69f commit 34e37a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/ProviderService.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function pushDatabase()
$path = $this->createDatabaseDump($filename);
$this->push($path);

if (property_exists($settings, 'keepLocal') && ! $settings->keepLocal) {
if (! property_exists($settings, 'keepLocal') || ! $settings->keepLocal) {
unlink($path);
}

Expand All @@ -129,7 +129,7 @@ public function pushVolumes(): string
$path = $this->createVolumesZip($filename);
$this->push($path);

if (property_exists($settings, 'keepLocal') && ! $settings->keepLocal) {
if (! property_exists($settings, 'keepLocal') || ! $settings->keepLocal) {
unlink($path);
}

Expand Down

0 comments on commit 34e37a9

Please sign in to comment.