Skip to content

Commit

Permalink
Exit codes
Browse files Browse the repository at this point in the history
  • Loading branch information
jissereitsma committed Jan 10, 2024
1 parent 3d82710 commit 8fb9176
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bin/directory-validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

use MageOsNl\Website\DirectoryProvider;

require_once '../vendor/autoload.php';
require_once '../lib/functions.php';
require_once __DIR__ .'/../vendor/autoload.php';
require_once __DIR__.'/../lib/functions.php';

$items = (new DirectoryProvider())->getDirectoryItems();
foreach ($items as $item) {
Expand All @@ -14,3 +14,7 @@
// @todo: If a remote image, make sure it does not generate a 404 error
}
}

// @todo: Implement exit(1)

exit(0);

0 comments on commit 8fb9176

Please sign in to comment.