Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 9f4f316

Browse files
committed
Fix path
1 parent 29a5806 commit 9f4f316

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

hyper-run

+5-4
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,17 @@ if (!is_dir($dir)) {
2222
exit(1);
2323
}
2424

25-
if (is_file(__DIR__ . '/../vendor/autoload.php')) {
26-
require __DIR__ . '/../vendor/autoload.php';
27-
} elseif (is_file(__DIR__ . '/../../../autoload.php')) {
28-
require __DIR__ . '/../../../autoload.php';
25+
if (is_file(__DIR__ . '/autoload.php')) {
26+
require __DIR__ . '/autoload.php';
27+
} elseif (is_file(__DIR__ . '/../../autoload.php')) {
28+
require __DIR__ . '/../../autoload.php';
2929
} else {
3030
fwrite(STDERR,
3131
"You need to set up the project dependencies using the following commands:\n" .
3232
"curl -s http://getcomposer.org/installer | php\n" .
3333
"php composer.phar install\n"
3434
);
35+
exit(1);
3536
}
3637

3738
$ps = new mpyw\HyperBuiltinServer\MasterProcess($dir);

0 commit comments

Comments
 (0)