Skip to content

Commit 65ac025

Browse files
committed
check command dir exists
1 parent e41186b commit 65ac025

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/webman

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@ require_once __DIR__ . '/support/bootstrap.php';
88
$cli = new Command();
99
$cli->setName('webman cli');
1010
$cli->installInternalCommands();
11-
$cli->installCommands(app_path(). '/command');
11+
if (is_dir($command_path = app_path(). '/command')) {
12+
$cli->installCommands($command_path);
13+
}
1214
$cli->run();

0 commit comments

Comments
 (0)