kayobe/dev/environment-setup.sh
Mark Goddard 820f9f2977 Address dev environment review comments
Improves shell script quoting, and adds

set -u
set -o pipefail
2018-02-06 14:08:45 +00:00

22 lines
464 B
Bash
Executable File

#!/bin/bash
set -eu
set -o pipefail
# This script can be used to prepare the environment for use with kayobe. This
# includes setting environment variables and activating the python virtual
# environment. This script should be sourced rather than executed in a
# subprocess. e.g. source dev/environment-setup.sh
PARENT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "${PARENT}/functions"
function main {
config_init
environment_setup
}
main