mc-cms-namelessmc/dev/scripts/verify_checksums.php

23 lines
367 B
PHP
Raw Permalink Normal View History

<?php
if (PHP_SAPI !== 'cli') {
die('This script must be run from the command line.');
}
const ROOT_PATH = __DIR__ . '/../..';
require ROOT_PATH . '/vendor/autoload.php';
$errors = IntegrityChecker::verifyChecksums();
if (count($errors) === 0) {
echo "No errors found!\n";
return;
}
foreach ($errors as $error) {
echo $error . "\n";
}
exit(1);