From b19190d80eb7eb4df8b17b8602971d5e642bc9d0 Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Sat, 20 Apr 2024 08:00:55 +0200 Subject: [PATCH] Redirect stderr --- build/scripts/phar-set-timestamps/run.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/scripts/phar-set-timestamps/run.php b/build/scripts/phar-set-timestamps/run.php index cfb8ffd945..d845e2b9f3 100755 --- a/build/scripts/phar-set-timestamps/run.php +++ b/build/scripts/phar-set-timestamps/run.php @@ -16,10 +16,10 @@ $epoch ); } else { - $tag = shell_exec('git describe --abbrev=0'); + $tag = @shell_exec('git describe --abbrev=0 2>&1'); if (is_string($tag) && strpos($tag, 'fatal') === false) { - $tmp = shell_exec('git log -1 --format=%at ' . trim($tag)); + $tmp = @shell_exec('git log -1 --format=%at ' . trim($tag) . ' 2>&1'); if (is_string($tag) && is_numeric(trim($tmp))) { $epoch = (int) trim($tmp);