Skip to content

Commit 17ce3e4

Browse files
swissspidyCopilot
andauthored
Update src/Package_Command.php
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a98bb8c commit 17ce3e4

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/Package_Command.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1434,7 +1434,10 @@ private function set_composer_auth_env_var() {
14341434
// Bitbucket OAuth consumer.
14351435
$bitbucket_key = getenv( 'BITBUCKET_CONSUMER_KEY' );
14361436
$bitbucket_secret = getenv( 'BITBUCKET_CONSUMER_SECRET' );
1437-
if ( ! isset( $composer_auth['bitbucket-oauth'] ) && is_string( $bitbucket_key ) && is_string( $bitbucket_secret ) ) {
1437+
if ( ! isset( $composer_auth['bitbucket-oauth'] )
1438+
&& is_string( $bitbucket_key ) && '' !== $bitbucket_key
1439+
&& is_string( $bitbucket_secret ) && '' !== $bitbucket_secret
1440+
) {
14381441
$composer_auth['bitbucket-oauth'] = [
14391442
'bitbucket.org' => [
14401443
'consumer-key' => $bitbucket_key,

0 commit comments

Comments
 (0)