Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
EOASkripts/scripts/config/load_env.sh
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
25 lines (19 sloc)
607 Bytes
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 | |
if [[ "$SCRIPT_DIR" == "" ]]; then | |
echo "ERROR in ./scripts/config/load_env.sh: \$SCRIPT_DIR is undefined!" | |
exit 1 | |
fi | |
BASE_DIR="$SCRIPT_DIR/.." | |
####################################### | |
# actual script | |
####################################### | |
# these are the default settings used by all scripts: | |
RUNTIME_DIR=runtime_data | |
################################################### | |
# export all these variables, so | |
# they can be referenced in the docker-compose.yaml | |
################################################### | |
set -a | |
source $SCRIPT_DIR/config/env.conf | |
set -a | |
# (stop exporting variables) |