Skip to content

Commit

Permalink
fix: exit with error code 0 when already logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
stropitek committed Nov 30, 2022
1 parent 265d5c8 commit 3f0768a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion login.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const keyPath = '/gcp-key.json';
const result = await execa('gcloud', ['auth', 'list']);
if (!result.stderr.includes('No credentialed accounts')) {
console.error('You are already logged in');
process.exit(1);
process.exit(0);
}

// Verify existence of key file
Expand Down

0 comments on commit 3f0768a

Please sign in to comment.