Skip to content

Instantly share code, notes, and snippets.

@erkiesken
Created May 17, 2016 14:49
Show Gist options
  • Save erkiesken/e4abd99e5f0e94fa7fcb5e55d1215647 to your computer and use it in GitHub Desktop.
Save erkiesken/e4abd99e5f0e94fa7fcb5e55d1215647 to your computer and use it in GitHub Desktop.
Pass vars from .env file to an executing program
#!/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