File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -20,15 +20,12 @@ import { writeSync, existsSync } from "fs";
2020// Set up Google Application Credentials for use by the Firebase CLI
2121// https://cloud.google.com/docs/authentication/production#finding_credentials_automatically
2222export async function createGacFile ( googleApplicationCredentials : string ) {
23- console . log ( "processing GAC credentials: " + googleApplicationCredentials )
2423 try {
2524 if ( existsSync ( googleApplicationCredentials ) ) {
2625 return googleApplicationCredentials ;
2726 }
28- console . log ( "creating temporary file for credentials..." )
2927 }
3028 catch ( e ) {
31- console . log ( "failed to check existence of %s\nerror: %O" , googleApplicationCredentials , e )
3229 // googleApplicationCredentials is not a path to a file
3330 }
3431 const tmpFile = fileSync ( { postfix : ".json" } ) ;
Original file line number Diff line number Diff line change @@ -70,8 +70,10 @@ async function run() {
7070 endGroup ( ) ;
7171
7272 startGroup ( "Setting up CLI credentials" ) ;
73+ console . log ( "validating passed credentials: %s" , googleApplicationCredentials ) ;
7374 const gacFilename = await createGacFile ( googleApplicationCredentials ) ;
74- if ( gacFilename != googleApplicationCredentials ) {
75+ console . log ( "generated credentials: %s" , gacFilename )
76+ if ( gacFilename !== googleApplicationCredentials ) {
7577 console . log (
7678 "Created a temporary file with Application Default Credentials."
7779 ) ;
You can’t perform that action at this time.
0 commit comments