Skip to content

Commit

Permalink
Redirect stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Apr 20, 2024
1 parent 20cf543 commit b19190d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/scripts/phar-set-timestamps/run.php
Expand Up @@ -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);
Expand Down

0 comments on commit b19190d

Please sign in to comment.