Skip to content

Commit 477ee9a

Browse files
committed
woops I goofed
1 parent 6f0dbfb commit 477ee9a

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

tests/Credentials/ExternalAccountCredentialsTest.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -597,12 +597,9 @@ public function testExecutableCredentialSourceEnvironmentVars()
597597
'id_token' => 'abc',
598598
'expiration_time' => time() + 100,
599599
]);
600-
if (PHP_OS_FAMILY === 'Windows') {
601-
$successJson = str_replace('"', "\'", $successJson);
602-
}
603600
$command = sprintf(
604601
'echo $GOOGLE_EXTERNAL_ACCOUNT_AUDIENCE,$GOOGLE_EXTERNAL_ACCOUNT_TOKEN_TYPE,%s > %s' .
605-
' && echo \'%s\' > \$GOOGLE_EXTERNAL_ACCOUNT_OUTPUT_FILE' .
602+
' && echo \'%s\' > $GOOGLE_EXTERNAL_ACCOUNT_OUTPUT_FILE' .
606603
' && echo \'%s\'',
607604
escapeshellarg($fileContents),
608605
escapeshellarg($tmpFile),
@@ -626,7 +623,7 @@ public function testExecutableCredentialSourceEnvironmentVars()
626623
'subject_token_type' => 'test-token-type',
627624
'credential_source' => [
628625
'executable' => [
629-
'command' => sprintf('bash -c %s', escapeshellarg($command)),
626+
'command' => $command,
630627
'timeout_millis' => 5000,
631628
'output_file' => $outputFile,
632629
],

0 commit comments

Comments
 (0)