Skip to content

Commit 6750164

Browse files
committed
hide stderr output when attempting gh cli exec
1 parent c7fbd14 commit 6750164

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configure.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ function searchCommitsForGithubUsername(): string
198198
function guessGithubUsernameUsingCli()
199199
{
200200
try {
201-
if (preg_match('/ogged in to github\.com as ([a-zA-Z-_]+).+/', shell_exec('gh auth status -h github.com'), $matches) === 1) {
201+
if (preg_match('/ogged in to github\.com as ([a-zA-Z-_]+).+/', shell_exec('gh auth status -h github.com 2>&1'), $matches)) {
202202
return $matches[1];
203203
}
204204
} catch (Exception $e) {

0 commit comments

Comments
 (0)