Created
December 29, 2016 02:02
-
-
Save laraconda/928b5e04072eb8cd9d8a284f24bce7d4 to your computer and use it in GitHub Desktop.
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/sh | |
# Set env vars from a file in the same dir as this script. | |
for ENVV in `cat $( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/[env_vars_raw]` | |
do | |
export $ENVV | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fuck. This script does not work when you call it from crontab.
Just change the path to your [env_vars_raw]. Make it explicit.