Skip to content

Instantly share code, notes, and snippets.

@gslin
Created March 30, 2023 10:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gslin/ec0c2df038732246feb84f07cbb20a66 to your computer and use it in GitHub Desktop.
Save gslin/ec0c2df038732246feb84f07cbb20a66 to your computer and use it in GitHub Desktop.
#!/bin/sh
set -o allexport
. /dev/stdin <<__GSM2ENV20230330EOF__
$(gcloud secrets versions access latest --secret="$1" || kill $$)
__GSM2ENV20230330EOF__
shift
exec "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment