Skip to content

Commit

Permalink
Added fix to skip database file removal if dir not found (#168)
Browse files Browse the repository at this point in the history
* Added fix to skip database file removal if dir not found

* Applied fix from StyleCI
  • Loading branch information
jaxwilko authored Jan 28, 2022
1 parent 87a12df commit 0648b32
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/BuildProcess/RemoveIgnoredFiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ protected function removeDefaultIgnoredFiles()
}
}

if (! $this->files->exists(Path::app().'/database')) {
return;
}

$files = (new Finder())
->in(Path::app().'/database')
->depth('== 0')
Expand Down

0 comments on commit 0648b32

Please sign in to comment.