Skip to content

Commit

Permalink
Merge pull request #235 from ruudk/allow-fd
Browse files Browse the repository at this point in the history
Allow passing configure options without being a real file
  • Loading branch information
mlocati committed Aug 17, 2021
2 parents eb4c247 + 2b86c75 commit ea757d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Base/Abstracts/Console/Command/BuildCommand.php
Expand Up @@ -101,7 +101,7 @@ protected function buildOptions(Package $package, InputInterface $input, OutputI
$force_opts = $input->getOption('with-configure-options');

if ($force_opts) {
if (!file_exists($force_opts) || !is_file($force_opts) || !is_readable($force_opts)) {
if (!file_exists($force_opts) || !(is_file($force_opts) || is_link($force_opts)) || !is_readable($force_opts)) {
throw new Exception("File '{$force_opts}' is unusable");
}

Expand Down

0 comments on commit ea757d2

Please sign in to comment.