Skip to content

Commit b19190d

Browse files
Redirect stderr
1 parent 20cf543 commit b19190d

File tree

1 file changed

+2
-2
lines changed
  • build/scripts/phar-set-timestamps

1 file changed

+2
-2
lines changed

build/scripts/phar-set-timestamps/run.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
$epoch
1717
);
1818
} else {
19-
$tag = shell_exec('git describe --abbrev=0');
19+
$tag = @shell_exec('git describe --abbrev=0 2>&1');
2020

2121
if (is_string($tag) && strpos($tag, 'fatal') === false) {
22-
$tmp = shell_exec('git log -1 --format=%at ' . trim($tag));
22+
$tmp = @shell_exec('git log -1 --format=%at ' . trim($tag) . ' 2>&1');
2323

2424
if (is_string($tag) && is_numeric(trim($tmp))) {
2525
$epoch = (int) trim($tmp);

0 commit comments

Comments
 (0)