Skip to content

Commit

Permalink
Use auto-exit
Browse files Browse the repository at this point in the history
  • Loading branch information
jigarius committed Dec 27, 2024
1 parent 75a3832 commit f245925
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions bin/drall
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ foreach ([

use Drall\Drall;

try {
$drall = new Drall();
$exitCode = $drall->run();
}
catch (Exception $e) {
echo "ERROR {$e->getCode()}: {$e->getMessage()}";
exit(1);
}

exit($exitCode);
$drall = new Drall();
$drall->setAutoExit(TRUE);
$drall->run();

0 comments on commit f245925

Please sign in to comment.