We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0317c61 commit 5205dbdCopy full SHA for 5205dbd
1 file changed
bin/dep
@@ -32,15 +32,8 @@ if (!empty($deployFile)) {
32
$deployFile = realpath($deployFile);
33
}
34
$lookUp = function (string $name): ?string {
35
- $dir = getcwd();
36
- for ($i = 0; $i < 10; $i++) {
37
- $path = "$dir/$name";
38
- if (is_readable($path)) {
39
- return $path;
40
- }
41
- $dir = dirname($dir);
42
43
- return '';
+ $path = getcwd() . '/' . $name;
+ return is_readable($path) ? $path : null;
44
};
45
if (empty($deployFile)) {
46
$deployFile = $lookUp('deploy.php');
0 commit comments