Skip to content

Commit

Permalink
Fix CLI warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli committed Feb 23, 2023
1 parent cf01e31 commit 2a8b112
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bref
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ function telemetry() {
}

// Check if we are running in CI
$ci = $_SERVER['CI'] || $_SERVER['CONTINUOUS_INTEGRATION'] || $_SERVER['BUILD_NUMBER'] || $_SERVER['CI_APP_ID'] || $_SERVER['CI_NAME'] || $_SERVER['RUN_ID'] || $_SERVER['BUILD_ID'];
$ciVars = ['CI', 'CONTINUOUS_INTEGRATION', 'BUILD_NUMBER', 'CI_APP_ID', 'CI_NAME', 'RUN_ID', 'BUILD_ID'];
$ci = array_reduce($ciVars, function ($carry, $item) {
return $carry || (isset($_SERVER[$item]) && $_SERVER[$item]);
}, false);

$message = json_encode([
'cli' => 'vendor/bin/bref',
Expand Down

0 comments on commit 2a8b112

Please sign in to comment.