mirror of
https://github.com/opdavies/gmail-filter-builder.git
synced 2025-03-13 05:26:57 +00:00
Check for absolute paths to filters file
This commit is contained in:
parent
6aeeb5b2c4
commit
9d18af8027
|
@ -37,7 +37,9 @@ class GenerateCommand extends Command
|
|||
$inputFile = $input->getOption('input-file');
|
||||
$outputFile = $input->getOption('output-file');
|
||||
|
||||
if (file_exists(__DIR__.'/'.$inputFile)) {
|
||||
if (file_exists($inputFile)) {
|
||||
$filters = require_once $inputFile;
|
||||
} elseif (file_exists(__DIR__.'/'.$inputFile)) {
|
||||
$filters = require_once __DIR__.'/'.$inputFile;
|
||||
} elseif (file_exists(__DIR__.'/../../../../../../'.$inputFile)) {
|
||||
# Installed as a dependency within "vendor".
|
||||
|
|
Loading…
Reference in a new issue