Skip to content

Commit aa2c3b7

Browse files
committed
fix requireValid to return bool instead of exit
1 parent 8a844b4 commit aa2c3b7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

cli/includes/helpers.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ public static function requireValid()
1111
exec(command: __DIR__ . '/../ob check', result_code: $result_code);
1212
if ($result_code == 1) {
1313
echo 'OpenBroadcaster installation is not valid. Run "ob check" for more information.' . PHP_EOL;
14-
exit(1);
14+
return false;
1515
}
16+
17+
return true;
1618
}
1719

1820
// output a formatted table

0 commit comments

Comments
 (0)