From 66f1db9e239d68bcfd0406320bcb121320492320 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Sat, 12 Mar 2022 07:52:12 +0000 Subject: Fix all runs being markes as in progress For some reason I couldn't figure out readlink() doesn't work so use `readlink` instead. --- autobuild/results.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autobuild/results.php b/autobuild/results.php index 5e2875f..7bccbe7 100644 --- a/autobuild/results.php +++ b/autobuild/results.php @@ -34,7 +34,9 @@ sort($runs); $latestlinks = glob("cauldron/*/core/latest"); $latest = 0; foreach ($latestlinks as $link) { - $date = readlink($link); + # This is ugly but readlink() returns false even if is_link() returns + # true and readlink() as user apache in php cli works. + $date = `readlink $link`; if ($date > $latest) { $latest = $date; } -- cgit v1.2.1