1
0
mirror of https://github.com/sebastianbergmann/docker-amiga-gcc.git synced 2026-01-12 07:58:55 +00:00

Show progress information

This commit is contained in:
Sebastian Bergmann
2020-04-29 12:19:35 +02:00
parent d2a4569862
commit 499b5b5fb0

View File

@ -23,6 +23,8 @@ $repositories = [
];
foreach ($repositories as $repository) {
print 'Checking ' . $repository . ' ... ';
$file = __DIR__ . '/.revisions/' . $repository;
$old = trim(file_get_contents($file));
@ -33,9 +35,11 @@ foreach ($repositories as $repository) {
);
if ($old !== $new) {
print $repository . ' has new commits' . PHP_EOL;
file_put_contents($file, $new);
print 'updated' . PHP_EOL;
} else {
print 'not updated' . PHP_EOL;
}
}