From e500ffa6a15473410c1d3dda80ecc4b8e89cfc54 Mon Sep 17 00:00:00 2001 From: Jack Wilkinson Date: Fri, 28 Jan 2022 12:07:41 +0000 Subject: [PATCH 1/2] Added fix to skip database file removal if dir not found --- src/BuildProcess/RemoveIgnoredFiles.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/BuildProcess/RemoveIgnoredFiles.php b/src/BuildProcess/RemoveIgnoredFiles.php index 7c48799d..edb8b453 100644 --- a/src/BuildProcess/RemoveIgnoredFiles.php +++ b/src/BuildProcess/RemoveIgnoredFiles.php @@ -55,6 +55,10 @@ protected function removeDefaultIgnoredFiles() } } + if (!$this->files->exists(Path::app().'/database')) { + return; + } + $files = (new Finder()) ->in(Path::app().'/database') ->depth('== 0') From 9c174d179cc191a1c8e5205a3a461e8065c11979 Mon Sep 17 00:00:00 2001 From: Jack Wilkinson Date: Fri, 28 Jan 2022 12:14:56 +0000 Subject: [PATCH 2/2] Applied fix from StyleCI --- src/BuildProcess/RemoveIgnoredFiles.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BuildProcess/RemoveIgnoredFiles.php b/src/BuildProcess/RemoveIgnoredFiles.php index edb8b453..ae2179a5 100644 --- a/src/BuildProcess/RemoveIgnoredFiles.php +++ b/src/BuildProcess/RemoveIgnoredFiles.php @@ -55,7 +55,7 @@ protected function removeDefaultIgnoredFiles() } } - if (!$this->files->exists(Path::app().'/database')) { + if (! $this->files->exists(Path::app().'/database')) { return; }