Skip to content
This repository was archived by the owner on Dec 14, 2019. It is now read-only.

Commit 78ce2b2

Browse files
authored
Merge pull request #57 from spelcaster/fix-tinx-gitignore
Create `/storage/tinx/.gitignore` file only if it doesn't exist.
2 parents 3126c21 + e461b4d commit 78ce2b2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/TinxServiceProvider.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ private function configureStorageDisk()
6262
* */
6363
private function ignoreStorageFiles()
6464
{
65-
app('tinx.storage')->put('.gitignore', '*'.PHP_EOL.'!.gitignore');
65+
if (!app('tinx.storage')->exists('.gitignore')) {
66+
app('tinx.storage')->put('.gitignore', '*'.PHP_EOL.'!.gitignore');
67+
}
6668
}
6769

6870
/**

0 commit comments

Comments
 (0)