Created
February 18, 2014 16:30
-
-
Save winmillwill/9074330 to your computer and use it in GitHub Desktop.
export environment variables with sensitive values from pass (think aws)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
creds=( `pass $1` ) | |
for cred in "${creds[@]}"; do | |
export $cred; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment