Skip to content

Commit

Permalink
Fix configuration path resolving
Browse files Browse the repository at this point in the history
  • Loading branch information
icanhazstring committed May 19, 2019
1 parent bbccd1d commit 202c6fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion captainhook-run
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ array_splice($_SERVER['argv'], 1, 1);
require CAPTAINHOOK_COMPOSER_AUTOLOAD;

// check captainhook.json
foreach ([__DIR__ . '/../../captainhook.json', __DIR__ . '/../captainhook.json', __DIR__ . '/captainhook.json'] as $file) {
foreach ([__DIR__ . '/../../../captainhook.json', __DIR__ . '/captainhook.json'] as $file) {
if (file_exists($file)) {
define('CAPTAINHOOK_CONFIG', $file);
break;
Expand Down

0 comments on commit 202c6fc

Please sign in to comment.