Created
May 17, 2016 14:49
-
-
Save erkiesken/e4abd99e5f0e94fa7fcb5e55d1215647 to your computer and use it in GitHub Desktop.
Pass vars from .env file to an executing program
This file contains hidden or 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 | |
# From http://stackoverflow.com/a/20909045/49871 | |
# | |
# Keeps the variables local | |
# | |
env $(cat .env | xargs) myprogram |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment