Skip to content

Commit

Permalink
works great
Browse files Browse the repository at this point in the history
  • Loading branch information
palladius committed Mar 27, 2024
1 parent 9319514 commit 92ac0ab
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bin/gcloud_authorized?
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

if gcloud auth print-access-token 1>/dev/null 2>/dev/null ; then
echo "OK. You are authorized"
exit 0
else
echo "NO. You need to run: gcloud auth login"
exit 42
fi

0 comments on commit 92ac0ab

Please sign in to comment.